Skip to content

Commit 48fb694

Browse files
authored
Merge pull request #333 from EngHell/upstream-pr
clear event dispatcher now updates before emiting
2 parents 435dc9c + 7c9ae56 commit 48fb694

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/composables/useOptions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ export default function useOptions (props, context, dep)
307307
}
308308

309309
const clear = () => {
310-
context.emit('clear', $this)
311310
update(nullValue.value)
311+
context.emit('clear', $this)
312312
}
313313

314314
const isSelected = (option) => {
@@ -853,4 +853,4 @@ export default function useOptions (props, context, dep)
853853
resolveOptions,
854854
refreshLabels,
855855
}
856-
}
856+
}

0 commit comments

Comments
 (0)