Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this fix. The
pointerEvents
property isn't well supported by IE.Actually, that's only 1% of the global traffic.
That would make official that we don't support IE < 11.
Going into this direction will also help us solve #3757. (for more details #4253 (comment)).
We would be able to remove our heuristic to generate a unique id.
Notice that this fix only works because the underlying
input
has a big height (that feels wrong in the first place).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oliviertassinari What do you recommend instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, the solution that we will came up with needs to address at least the three issues we have raised.
Here is what came into my mind:
onTouchTap
on thefloatingLabel
to address [Core] Add uniqueId generator #4253, [TextField] uniqueId breaks server rendering #3757.input
in theTextField
component to match the input text height.onTouchTap
to the root component of theTextField
.DropDownMenu
controllable and let theSelectField
control it.TL;DR Using
pointerEvents
sounds like a good quick win.