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

[Feature Request] V-Select: Add prop to suppress change notification while menu open #9901

Open
roblugt opened this issue Dec 6, 2019 · 0 comments
Labels
C: VSelect VSelect T: feature A new feature

Comments

@roblugt
Copy link
Contributor

roblugt commented Dec 6, 2019

Problem to solve

When using multiple selection, the user may need to select multiple items from the menu - and signal that the selection is complete by closing the menu. If the application has to do significant work when the selection changes (e.g. accessing data from an API), then it would be useful to be able to react to selection changes in bulk only when the menu is closed rather than each time the user selects an individual item.

I tried implementing this logic by listening to the @blur event, but this does not get triggered when clicking outside the component. Also, we probably want to react immediately when items are de-selected by clicking the close button on chips.

Currently the component hosting the v-autocomplete or v-select does not have access to the v-select's menu state.

Proposed solution

Add a prop to v-select such as "supressChangesWhileMenuOpen". Alternatively, provide access to the underlying menu state with a prop+event so that the containing application can implement the custom logic.

@ghost ghost added the S: triage label Dec 6, 2019
@johnleider johnleider added C: VSelect VSelect T: feature A new feature and removed S: triage labels Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VSelect VSelect T: feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants