Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb6e346b

Browse files
fix(ComboboxCancel): reset model value on clear without requiring input element (#2332)
1 parent375334e commitb6e346b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎packages/core/src/Combobox/ComboboxCancel.vue‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ function handleClick() {
2323
if (rootContext.inputElement.value) {
2424
rootContext.inputElement.value.value=''
2525
rootContext.inputElement.value.focus()
26-
if (rootContext.resetModelValueOnClear?.value) {
27-
rootContext.modelValue.value=rootContext.multiple.value? []:null
28-
}
26+
}
27+
28+
if (rootContext.resetModelValueOnClear?.value) {
29+
rootContext.modelValue.value=rootContext.multiple.value? []:null
2930
}
3031
}
3132
</script>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp