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

range throws error when not in a form #2

Open
dotnetwise opened this issue Dec 28, 2011 · 0 comments
Open

range throws error when not in a form #2

dotnetwise opened this issue Dec 28, 2011 · 0 comments

Comments

@dotnetwise
Copy link

I have found a bug when a range input is not within a form.

I have fixed it by adding to this line as below:
parentForm = DOMHelpers.getAncestorByTagName(node, 'form');

parentForm = DOMHelpers.getAncestorByTagName(node, 'form') || document.body;
//fallback to document.body - which works - yey

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

1 participant