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

file-dialog: apply the default filter #10133

Merged
merged 1 commit into from
Sep 20, 2021
Merged

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes: #10132

The pull-request addresses an issue where the default filter for the file-dialog is not being applied when the dialog is first displayed. The change addresses this issue and applies the filter properly initially.

How to test

  1. start the example-browser application
  2. using a dialog which has an applied filter, ensure that the filter is correctly applied when the dialog is first opened
  3. confirm that switching filters works correctly

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto [email protected]

@vince-fugnitto vince-fugnitto added the file dialog issues related to the file dialog label Sep 17, 2021
Copy link
Contributor

@colin-grant-work colin-grant-work left a comment

Choose a reason for hiding this comment

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

This is working for me. The default filter is applied initially, and changing filters updates the display appropriately.

packages/filesystem/src/browser/file-dialog/file-dialog.ts Outdated Show resolved Hide resolved
@vince-fugnitto vince-fugnitto self-assigned this Sep 17, 2021
The commit fixes an issue where the `file-dialog` filter was not
respected when we display the dialog initially. Previously a change
event in the filter meant that the dialog was properly filtered.

Signed-off-by: vince-fugnitto <[email protected]>
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

LGTM!

@vince-fugnitto vince-fugnitto merged commit aed9876 into master Sep 20, 2021
@vince-fugnitto vince-fugnitto deleted the vf/file-dialog-filter branch September 20, 2021 15:59
@github-actions github-actions bot added this to the 1.18.0 milestone Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
file dialog issues related to the file dialog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

file-dialog: default filter does not take effect
3 participants