We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sValue
1 parent 07b4150 commit 663905fCopy full SHA for 663905f
components/vc-time-picker/TimePicker.jsx
@@ -326,6 +326,11 @@ export default defineComponent({
326
</a>
327
);
328
},
329
+ onInput() {
330
+ // input value is always synchronized with sValue
331
+ // ref: https://github.com/vueComponent/ant-design-vue/issues/4084
332
+ this.picker.value = (this.sValue && this.sValue.format(this.getFormat())) || '';
333
+ },
334
335
336
render() {
@@ -378,6 +383,7 @@ export default defineComponent({
378
383
disabled={disabled}
379
384
value={(sValue && sValue.format(this.getFormat())) || ''}
380
385
autocomplete={autocomplete}
386
+ onInput={this.onInput}
381
387
onFocus={onFocus}
382
388
onBlur={onBlur}
389
autofocus={autofocus}
0 commit comments