-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-input-container input type="number" field resizes after value input #7349
Comments
Can you please provide a Codepen showing the issue? Particularly, I'd like to know what your layout/container looks like. |
Thank you for replying. Probably something obvious, thanks for your interest On Thu, Mar 24, 2016 at 1:16 PM, Topher Fangio notifications@github.com
|
Sure and also wow that's some trippy behaviour. |
Great thanks, I'm still learning, and it can be tricky to differentiate These were setup to flex. I worked around the sizing issue by changing the Thanks for your interest, Dan.
|
This seems to be some kind of strange behaviour in Webkit (IE, Edge and Firefox don't have it, but Chrome, Safari and Opera do) that happens if the input is I didn't manage to hack around it with CSS (e.g. @topherfangio I'll put in a PR for setting the For future reference, here's a minimal way of reproducing it: <div layout>
<input type="number" min="1" max="999">
</div> |
@crisbeto Wow; that sounds like fun. Out of curiosity, did you test this with a plain number input? I'm wondering if there is something that Material is doing to cause it. |
EDIT: Also here's a fiddle https://jsfiddle.net/crisbeto/phm2nuar/1/ |
Fixes an issue in Webkit browsers where number inputs would collapse to about 1/3 of their proper size, if they're placed in a flexbox and have `min` and `max` attributes. Fiddle with a simplified example of the issue: https://jsfiddle.net/crisbeto/phm2nuar/3/ Closes angular#7349.
Fixes an issue in Webkit browsers where number inputs would collapse to about 1/3 of their proper size, if they're placed in a flexbox and have `min` and `max` attributes. Fiddle with a simplified example of the issue: https://jsfiddle.net/crisbeto/phm2nuar/3/ Closes angular#7349.
Initial placement is fine. Upon entering a number, the field resizes. I tried setting
as per another post (#4864), without results.
The text was updated successfully, but these errors were encountered: