ember-cli-materialize
ember-cli-materialize copied to clipboard
Modal - No animation
When I build a modal as documented, revealed by the conditional, triggered by an action, the modal simply appears, rather than animating in as the other modals do.
As a side note, and not the issue reported here: Attempting to circumvent this potential bug, and rendering the modal in the documented materializecss way (building the modal hidden, opening with $().openModal(); works, and is animated, but closing the modal fails to close the overlay.
Anyone else experiencing this?
Yes, but I was trying to use {{#liquid-if}}
to wrap {{#md-modal}}
, which can't work since the actual content is in a container higher in the DOM. I haven't found a good solution yet.
I'm not sure exactly what's going on, I'll see if I can dive into the code base a bit.
If you stick a modal on a page, it's up. The suggestion is adding an {{#if}}
statement around the modal and triggering it's truthiness, which makes it just "appear".
Instead, it needs to get on the page, and then have Ember.$(element).openModal(optionsHash)
called on it, which shouldn't be too difficult. If not replacing the {{#if}}
statement, then as a second way of using it.