Ver código fonte

TimePicker: Set the selection range after scrolling up or down (#16868)

Bryan Matthews 5 anos atrás
pai
commit
45c0ef46f2
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      packages/date-picker/src/basic/time-spinner.vue

+ 1 - 0
packages/date-picker/src/basic/time-spinner.vue

@@ -283,6 +283,7 @@
 
         this.modifyDateField(label, now);
         this.adjustSpinner(label, now);
+        this.$nextTick(() => this.emitSelectRange(this.currentScrollbar));
       },
       amPm(hour) {
         let shouldShowAmPm = this.amPmMode.toLowerCase() === 'a';