-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix item-selection on dropdown with popover in safari #2356
Conversation
be58be9
to
a64170e
Compare
a64170e
to
b8d94c4
Compare
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.
Got some minor comments and it seems like there are failing tests.
In the long run i really think we should be looking into using ionics popover functionality instead of our own homebrewed concoction.
libs/designsystem/src/lib/components/dropdown/dropdown.component.ts
Outdated
Show resolved
Hide resolved
@@ -471,14 +471,19 @@ export class DropdownComponent | |||
|
|||
@HostListener('keydown.enter') | |||
@HostListener('keydown.escape') | |||
_onEnterOrEsscape(event?: FocusEvent) { |
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.
I'm getting the following linting error on this line:
[tsserver 6133] [I] 'event' is declared but its value is never read.
this._onTouched(); | ||
} | ||
|
||
_onPopoverClick(event: PointerEvent) { |
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.
I'm getting the following linting error on this line:
[tsserver 6133] [I] 'event' is declared but its value is never read.
_onPopoverClick(event: PointerEvent) { | ||
this.close(); | ||
} | ||
|
||
@HostListener('blur', ['$event']) | ||
_onBlur(event?: FocusEvent) { |
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.
I'm getting the following linting error on this line:
[tsserver 6133] [I] 'event' is declared but its value is never read.
e995dcc
to
04138ba
Compare
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.
LGTM!
Which issue does this PR close?
This PR closes #2317
What is the new behavior?
Fix selection problem on dropdown with popover in Safari/WebView.
Does this PR introduce a breaking change?
Are there any additional context?
Checklist:
The following tasks should be carried out in sequence in order to follow the process of contributing correctly.
Reminders
Review
When the pull request has been approved it will be merged to
develop
by Team Kirby.