[Inputs] Styles should prioritize disabled
over readOnly
#8239
Labels
design decision
feature request
help wanted
The EUI team is looking for community members to pick up and implement this issue
Is your feature request related to a problem? Please describe.
Related to #8238, a solution to this would be to set
readOnly
wheneverdisabled
is set, so something like this...The issue in this case is that the current styles prioritize
readOnly
whenever bothreadOnly
anddisabled
are applied together.See demo https://codesandbox.io/p/sandbox/adoring-christian-jk8t45
Describe the solution you'd like
The input styles prioritize
disabled
overreadOnly
. This is the same behavior as the basic html input.Describe alternatives you've considered
An alternate fix to #8238 would be to just check
disabled
before triggeringonChange
from a consumers perspective, but this is not ideal.Desired timeline
Unknown
cc: @MichaelMarcialis
The text was updated successfully, but these errors were encountered: