I'm stuck on this problem. Can anyone help? Before...
# react
d
I'm stuck on this problem. Can anyone help? Before clicking, After Clicking, Code Snippet. (utilizing mui)
1
Solution TextField { sx { width = 40.pct } label = _ReactNode_("Start Day") variant = FormControlVariant.outlined onClick = { val target = it.target as dom.html.HTMLInputElement target.type = InputType.date.toString() } onBlur = { val target = it.target as dom.html.HTMLInputElement target.type = InputType.text.toString() } }
p
Is this a work-around right ?
d
Solution to a non working problem above
a
Hi @Dmitriy Malayev, this is a bug of the
MUI Material UI
library. Please create an issue here. P.S. Also you can use ‘Date Pickers’ instead - Documentation - Kotlin Wrappers - Kotlin MUI Showcase
s
Shrink prop will fix the problem, thanks @Leon for helping with the syntax