dmotz / oriDomi

🪭 Fold up DOM elements like paper

Home Page:http://oridomi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevents Interaction With Form Elements

uxward opened this issue · comments

I have a div that contains form items (some basic text inputs, a drop-down menu, a jQuery datepicker etc.) - when I apply the fold oriDomi folding, it unfolds as expected, but I can no longer interact with the form elements.

I'm using this within a Foundation 4 framework if that makes a difference.

The effect I'm going for is that the div element 'foldMe' is completely folded on page load, then when you click a button, it unfolds to reveal itself. This is more or less working (though I doubt how I did it is the most effective way).

Not sure how to attach code here...won't attach a text file, and comment editor eats the code...

Try calling freeze() on the oriDomi instance in the callback of unfold. Freezing will swap in the original content and you should be able to interact with it.