ember-modals icon indicating copy to clipboard operation
ember-modals copied to clipboard

no action handler for: closeModal

Open jklapuch opened this issue 8 years ago • 4 comments

Hi, I've just started with this ember addon, but I still can't solve my problem. Component can't find closeModal action. And close button from option "showCloseButton" works.

welcome-dialog.hbs:

<h2>Welcome!</h2>
<button {{action 'closeModal'}}>Close</button>

welcome-dialog.js:

import Ember from 'ember';

export default Ember.Component.extend({
});

route template:

<button  {{action 'showModal' 'welcome-dialog' this target=modals}}>
  Show welcome with context
</button>

application.hbs

{{outlet}}

{{ember-modals}}

Error: Uncaught Error: <test-app@component:welcome-dialog::ember716> had no action handler for: closeModal

jklapuch avatar Mar 17 '16 19:03 jklapuch

Same here

FUT avatar May 26 '16 15:05 FUT

Thanks for the report. Will look into this to see if I can replicate. I don't suppose you're able to share some failing code?

sir-dunxalot avatar May 27 '16 01:05 sir-dunxalot

Sorry, I'll clarify - 'code' meaning an Ember app I can run ember s on and see the error.

sir-dunxalot avatar May 27 '16 01:05 sir-dunxalot

Same issue here, did people find a workaround or just find a different library?

I'll try and get some code up in the coming days.

alexmherrmann avatar Jun 16 '16 15:06 alexmherrmann