Sfoglia il codice sorgente

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

Bryan Matthews 5 anni fa
parent
commit
45c0ef46f2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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';