dmotz / oriDomi

🪭 Fold up DOM elements like paper
https://oxism.com/oriDomi
MIT License
2.41k stars 207 forks source link

Prevents Interaction With Form Elements #14

Closed uxward closed 10 years ago

uxward commented 11 years ago

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...

dmotz commented 11 years ago

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.