Skip to content

Commit

Permalink
fix(time-select): 修复TimeSelect手动修改时间后无法再次选中初次时间的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mengqiuleo committed Nov 4, 2024
1 parent 2e6e2f8 commit 3dd83ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderless/src/time-panel/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const initState = ({ reactive, computed, api }) => {
set: (value) => {
const valid = state.items.some((item) => item.value === value)

state.realValue = valid ? value : ''
state.realValue = state.lastEmitValue = valid ? value : ''
}
})
})
Expand Down

0 comments on commit 3dd83ab

Please sign in to comment.