Skip to content

Commit

Permalink
fix(pro:search): click is correct when key is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
threedayAAAAA committed Nov 27, 2023
1 parent 3692447 commit e85e789
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ export default defineComponent({

const confirmValue = (value: unknown) => {
let searchStateKey = searchState.value?.key
const valIsNil = value === undefined || value === null

if (!value && searchStateKey) {
if (valIsNil && searchStateKey) {
removeSearchState(searchStateKey)
return
}
Expand Down

0 comments on commit e85e789

Please sign in to comment.