You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like now we can pass hide option in modal component.
But component's open, close methods https://github.com/indexiatech/ember-components/blob/master/lib/modal/modal.coffee#L129 use trigger and sendAction together that will cause an error. I explain why: trigger wants a reference to real function inside hide param. sendAction wants a string with the name of method that we will be propagated.
but i get an error since the open method is calling a trigger with the same name (this.trigger('show') which is followed by this.sendAction('show',this) )
Looks like now we can pass
hide
option in modal component.But component's
open
,close
methods https://github.com/indexiatech/ember-components/blob/master/lib/modal/modal.coffee#L129 usetrigger
andsendAction
together that will cause an error. I explain why:trigger
wants a reference to real function insidehide
param.sendAction
wants a string with the name of method that we will be propagated.I recommend to remove
trigger
call because usingsendAction
is the best practice http://emberjs.com/guides/components/sending-actions-from-components-to-your-application/The text was updated successfully, but these errors were encountered: