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

Tooltips left behind #45

Open
DrEvilMonkey opened this issue Dec 29, 2015 · 2 comments
Open

Tooltips left behind #45

DrEvilMonkey opened this issue Dec 29, 2015 · 2 comments

Comments

@DrEvilMonkey
Copy link

There is a problem, I use the tooltip validation on a modal, after i submit the data and it is accepted i hide the modal, problem is tooltips are left behind for every field.

@idreeshaddad
Copy link
Contributor

I've seen this problem, but @refactorthis has been away for sometime now, so I don't know if this will be fixed soon.

@alecgibson
Copy link

For a quick fix, comment out xtForm.js:458:
//container: attrs.container || 'body'
(and remove the preceding comma)

This will stop xtForm from adding the tooltips to the body element by default, and so they should disappear when when their input field disappears.

Alternatively, you could override this behaviour by adding the data-container attribute to an element close to your input element. NB: you can't set it to be the input directly, because input cannot contain other DOM elements.

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

No branches or pull requests

3 participants