You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Often classNames or styles are used for layout concerns like padding or margins, which can't be controlled here. Specifically, I might wish to use a class or style to override the padding applied to a dateInput within a toolbar - that's something that happens at the outermost layer.
I would vote for applying at least className to the outer div. If needed, could support inputClassName, but not sure we really need that.
The text was updated successfully, but these errors were encountered:
amcclain
changed the title
DateInput <div> wrapper prevents setting className, styles on outermost element
Extra <div> wrapper around DateInput DOM prevents setting className, styles on outermost element
Jun 20, 2024
The desktop DateInput component renders with an outer
<div>
element that does not take theclassName
orstyle
props passed to the component -hoist-react/desktop/cmp/input/DateInput.js
Line 391 in d7a09df
Often classNames or styles are used for layout concerns like padding or margins, which can't be controlled here. Specifically, I might wish to use a class or style to override the padding applied to a dateInput within a toolbar - that's something that happens at the outermost layer.
I would vote for applying at least
className
to the outer div. If needed, could supportinputClassName
, but not sure we really need that.The text was updated successfully, but these errors were encountered: