fix(PresetPanel): preset panel stopPropagation (#7550)

pull/7632/head
evanlc 2024-06-04 23:28:22 +08:00 committed by GitHub
parent 1d0fa8533a
commit b82d8dd2ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ export default defineComponent({
{props.presets.map(({ label, value }, index) => ( {props.presets.map(({ label, value }, index) => (
<li <li
key={index} key={index}
onClick={() => { onClick={e => {
e.stopPropagation();
props.onClick(value); props.onClick(value);
}} }}
onMouseenter={() => { onMouseenter={() => {