Closed toastal closed 1 year ago
I tried
Alt.do
isDisabled <#> \d → guard d $> D.Disabled !:= "disabled"
No luck.
To unset an attribute, you can set it to unit
. For more info, you can check out Unsetting an attribute with a hook in the Deku documentation.
With a property like
<input disabled>
what is the most ergonomic way to handledisabled
? All of the examples show littleif _ then
s, but I'm curious about when you need to completely remove the attribute. I know you could concat lists, but surely there's anAlt.do
-compatible option? Something withguard
?? And what is on the value side,D.Disable !:= null
?