Skip to content

Filtered Dropdown unusable on Windows Tablet #1411

Closed
@slumtrimpet

Description

@slumtrimpet

I'm submitting a ... (check one with "x")

[X] bug report
[ ] feature request
[ ] support request

Attempting to access filtered Dropdown in a Windows 10 tablet device (running Edge or Chrome browsers) immediately closes the dropdown and is therefore unusable.

A 'resize' event is being registered when the keyboard is displayed.

An update of the following in Dropdown.vue fixes the issue (but of course renders the auto-close on legit-resize event broken).

    bindResizeListener() {
      if (!this.resizeListener) {
        this.resizeListener = () => {
          if (this.overlayVisible && !DomHandler.isAndroid()) {
            // this.hide();  <<< REMOVED THIS FOR NOW
          }
        };
        window.addEventListener('resize', this.resizeListener);
      }
    }

Suspect you need something similar to DomHandler.isAndroid to detect a Windows device running in tablet mode to fix this properly (if that's possible).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: BugIssue contains a bug related to a specific component. Something about the component is not working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions