-
Notifications
You must be signed in to change notification settings - Fork 83
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
feat: enable 1-click switch between pickers when open #6785
feat: enable 1-click switch between pickers when open #6785
Conversation
Should it be called a fix or feat? |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is now a problem with focused
and focus-ring
attributes not getting removed from vaadin-date-picker
after focusing vaadin-time-picker
and removing focus:
dtp-focused.mp4
@@ -518,16 +519,23 @@ class DateTimePicker extends FieldMixin(DisabledMixin(FocusMixin(ThemableMixin(E | |||
this.__dispatchChangeForValue = undefined; | |||
} | |||
|
|||
__openedChangedEventHandler() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: let's add @private
JSDoc annotation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -94,6 +95,50 @@ describe('Basic features', () => { | |||
expect(datePicker.hasAttribute('focused')).to.be.true; | |||
}); | |||
|
|||
it('should not have `pointer-events` by default', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: could group new tests into separate suite.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
I've encountered odd behavior in Safari that negatively impacts the UX of this feature. Certain labels, such as "Birth date and time", cause Safari to activate autofill for the Screen.Recording.2023-11-17.at.9.38.59.movHaving that said, I couldn't reproduce it with the regular UPD: Reported in #6817. |
081ad6b
to
19d0439
Compare
Fixed. |
Fixed by adding "search" prefix to the |
8bcc2a6
to
fe5f187
Compare
fe5f187
to
e08f07c
Compare
Quality Gate passedIssues Measures |
This ticket/PR has been released with Vaadin 24.5.0.alpha10 and is also targeting the upcoming stable 24.5.0 version. |
Description
The PR makes it possible to switch between pickers of
date-time-picker
with one click when one of them is open. Previously, clicking into the opposite picker while the current picker was open only caused the current picker to close without moving focus to the opposite picker.Before:
Screen.Recording.2023-11-15.at.9.43.24.mov
After:
Screen.Recording.2023-11-15.at.9.44.06.mov
Fixes #6407
Type of change