vue-ctk-date-time-picker
vue-ctk-date-time-picker copied to clipboard
Feat/scroll select toggle prop
Allows the user to explicitly set auto-select on scroll via a prop.
Currently in src/VueCtkDateTimePicker/_subs/PickersContainer/_subs/TimePicker.vue, the setTimeout method on 390 in the initPositionView () method overrides the initial config by explicitly setting this.noScrollEvent = false.
The feature branch corrects that by allowing a user to pass in a boolean prop with scroll-select and establishes the method getNoScrollEvent() which can be used for future customization of the property. The original config is currently commented out in that method; e.g.:
getNoScrollEvent () {
// This is (essentially) the original implementation
// if (this.scrollSelect) {
// return !!(this.value && !this.inline)
// }
return !this.scrollSelect
}
Additionally, documentation and examples have been updated to reflect this change.