Skip to content
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

Merged
merged 4 commits into from
Jun 17, 2022

Conversation

mictro
Copy link
Contributor

@mictro mictro commented Jun 16, 2022

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?

  • Yes
  • No

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

  • Make sure you have implemented tests following the guidelines in: "The good: Test".
  • Make sure you have updated the cookbook with examples and showcases (for bug fixes, enhancements & new components).

Review

  • Do a self-review.
  • Request that the changes are code-reviewed
  • Request that the changes are UX reviewed (only necessary if your PR introduces visual changes)

When the pull request has been approved it will be merged to develop by Team Kirby.

@github-actions github-actions bot temporarily deployed to pr-7114-use-popover-on-select-dropdowns June 16, 2022 11:20 Inactive
@mictro mictro force-pushed the bug/7114-use-popover-on-select-dropdowns branch from be58be9 to a64170e Compare June 17, 2022 09:05
@mictro mictro requested a review from MadsBuchmann June 17, 2022 09:35
@mictro mictro force-pushed the bug/7114-use-popover-on-select-dropdowns branch from a64170e to b8d94c4 Compare June 17, 2022 09:40
@mictro mictro changed the title Fix item-selection of dropdown with popover on safari Fix item-selection in dropdown with popover on safari Jun 17, 2022
@mictro mictro changed the title Fix item-selection in dropdown with popover on safari Fix item-selection on dropdown with popover in safari Jun 17, 2022
Copy link
Contributor

@MadsBuchmann MadsBuchmann left a 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.

@@ -471,14 +471,19 @@ export class DropdownComponent

@HostListener('keydown.enter')
@HostListener('keydown.escape')
_onEnterOrEsscape(event?: FocusEvent) {
Copy link
Contributor

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) {
Copy link
Contributor

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) {
Copy link
Contributor

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.

@mictro mictro force-pushed the bug/7114-use-popover-on-select-dropdowns branch from e995dcc to 04138ba Compare June 17, 2022 11:21
@github-actions github-actions bot temporarily deployed to pr-7114-use-popover-on-select-dropdowns June 17, 2022 11:26 Inactive
Copy link
Contributor

@MadsBuchmann MadsBuchmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mictro mictro merged commit ecb9cfd into develop Jun 17, 2022
@mictro mictro deleted the bug/7114-use-popover-on-select-dropdowns branch June 17, 2022 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] UsePopover iOS
2 participants