[DatePicker] Added OnDoubleClick event and DoubleClickToToday parameter.#2563
[DatePicker] Added OnDoubleClick event and DoubleClickToToday parameter.#2563RickyLin wants to merge 3 commits intomicrosoft:devfrom
Conversation
|
@microsoft-github-policy-service agree |
|
I think everything looks good. Thanks for this! Can you just add / change one of the examples to show this new behavior? Maybe alter https://www.fluentui-blazor.net/DateTime#defaultdatepicker with a checkbox to enable/disable |
|
I'm not sure that removing the On the other hand, using JavaScript in Blazor dissociates the logic known by Blazor and by the client part, which is not always recommended (unless you can't do without it). So can you separate this PR into two PRs: the first which only manages the new DoubleClick functionality and the second which does the refactoring? I'd like to check the problems you've outlined to see what the best solution is (if possible without JS). |
|
Hi @dvoituron, |
Pull Request
📖 Description
OnDoubleClickevent to DatePicker component.DoubleClickToTodayparameter to DatePicker component.2.1 When
DoubleClickToTodayistrue, today's date is set to the date picker after a user double-clicks on the text field of the date picker.🎫 Issues
The PR was related to the discussion #2524 How can I extend FluentDatePicker to support double-click event on its text field?
👩💻 Reviewer Notes
3 functionalities to test:
OnDoubleClickevent should work.DoubleClickToTodayparameter should work.📑 Test Plan
Only DatePicker needs to be tested, it should not affect other components.
✅ Checklist
General
Component-specific
⏭ Next Steps
No follow-up work to this PR.