-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picker only emit user change #6214
Picker only emit user change #6214
Conversation
I prefer a cleaner approach. Using flags to distinguish user interaction seems unnecessarily complicated. |
@wacky6 |
I prefer emit change in user-related event handlers, leave out the flags. |
I am working on a cleaner picker implementation, with bug fixes and refined |
@wacky6 Cool |
@wacky6 In terms of |
Got it. |
This reverts commit 1912c47.
*-Picker rework mostly finished. Updating / adding tests. Should be able to PR later this week. Spoiler:
|
Wow that's great |
This reverts commit 1912c47.
* Revert "Picker only emit user change (#6214)" This reverts commit 1912c47. * picker/util: add helper methods range: n => Array modify{Date, Time}: Date => Date clear{Time, Milliseconds}: Date => Date limitTimeRange: Date => Date timeWithinRange: Date, [Date] => Boolean * time-spinner: refactory * time-panel: refactory * picker refactory * date-panel, *-table: refactory * time-select: refactory * test: update time-picker * test: update date-picker * time-range: refactory * date-range: refactory * test: update time-select * test: update form date-picker/time-picker * docs: update date-picker
DatePicker
系列的change
事件改为仅响应用户交互