We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My use case
<div {{action 'openSomething'}}> <div {{action 'editMode' bubbles=false}}>Edit something</div> {{#power-select options=options selected=selected onchange=(action 'onchange') as |option|}} <span>{{option.name}}</span> {{/power-select}} </div>
What I need - is to prevent openSomething action from firing, when I'm trying to open power-select menu.
openSomething
power-select
This can be done by changing components/power-select.js#onopen action, with the following code
ember-power-select/addon/components/power-select.js
onOpen(_, e, options) { // Some code if (options.bubbles === false) { e.preventDefault(); } // Rest of the code }
and use it like this
myapp/component/open-something.js
onopen() { this.performSomeCustomLogic(); this._super(...arguments, { bubbles: false }); }
I can make a PR for this if you find this idea reasonable. And thank you for the awesome addon)
The text was updated successfully, but these errors were encountered:
@cibernox This would be very useful, any updates on it?
Sorry, something went wrong.
No branches or pull requests
My use case
What I need - is to prevent
openSomething
action from firing, when I'm trying to openpower-select
menu.This can be done by changing components/power-select.js#onopen action, with the following code
ember-power-select/addon/components/power-select.js
and use it like this
myapp/component/open-something.js
I can make a PR for this if you find this idea reasonable.
And thank you for the awesome addon)
The text was updated successfully, but these errors were encountered: