Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic form content #5

Open
EHLOVader opened this issue Aug 11, 2015 · 2 comments
Open

Dynamic form content #5

EHLOVader opened this issue Aug 11, 2015 · 2 comments
Labels
Milestone

Comments

@EHLOVader
Copy link

This doesn't appear to be working correctly for fields that are added to the page dynamically after load.

I don't see why or how this could be, but the only inputs which aren't working are added in this way.

@georgwaechter
Copy link

I searched through the code (script.js) and it seems the extension looks for <input fields etc only on initial load. I guess the function "init_virtualKeyboardChromeExtension" should be loaded every time the DOM changes.

My application needs this case too (in the future) - maybe I'll improve the extension in a few weeks.

All the best

Georg

@EHLOVader
Copy link
Author

It does call on interval though, so I am thinking it may actually work but I was affected by another problem with how this initializes and marks inputs.
I have been meaning to return after I confirm, and test a bit more. Both of my issues may be related.

What happened to me was the dynamic form content was generated by cloning a hidden element. That element was still seen by virtual keyboard though and initialized with event listeners and an attribute. That attribute was cloned but the event listener wasn't so it created problems.

As far as I can tell I just need to remove the attribute or deep clone. Cloning all the event listeners may be a bad choice so I have had some success with this on my clone:

.removeAttr('_vkenabled')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants