vaadin-component-factory / multi-combo-box-flow

https://incubator.app.fi/multi-combo-box-flow-demo/
Apache License 2.0
3 stars 1 forks source link

Provide listener to be informed, when values have changed and overlay is closed #20

Open stefanuebe opened 3 years ago

stefanuebe commented 3 years ago

Currently there is no public way to be informed, when the user has made all choices and closes the MCB. The value change listener is fired on every item selection and the opened changed listener is protected.

To provide some support for the "selection of values is done" scenario, either the addOpenedChangedListener should be made public (so that inside the dev can check for the current values) or a new "Values Changed Listener" or similar should be added, which is notified, when the overlay is closed and provide the old and new values.

Making addOpenedChangeListener public is probably the easier way, but needs https://github.com/vaadin-component-factory/multi-combo-box-flow/issues/19 to be fixed first.