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

up/down buttons are not generated with proper height if input element is detached/hidden #18

Closed
bwalex opened this issue Nov 17, 2013 · 1 comment

Comments

@bwalex
Copy link

bwalex commented Nov 17, 2013

When the input type=number element that it is applied to is currently detached (e.g. when using Backbone to generate some DOM and then attach it) or when it is hidden, the wrong height is detected/used for the up/down buttons.

@jonstipe
Copy link
Owner

It now throws an error in these cases. We need to be able to measure the element's height. Attach the element to the DOM, THEN run the polyfill on it.

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

2 participants