-
Notifications
You must be signed in to change notification settings - Fork 78
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
[BLOCKED] feat: allow 1-click switch between pickers when open #6785
base: main
Are you sure you want to change the base?
[BLOCKED] feat: allow 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.
@@ -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.
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. |
Description
Warning
Blocked by #6817
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