davedawkins / Sutil

Lightweight front-end framework for F# / Fable. No dependencies.
https://sutil.dev
MIT License
299 stars 19 forks source link

`prop.readOnly false` should not generate the `readOnly` attribute #91

Closed MangelMaxime closed 1 month ago

MangelMaxime commented 1 month ago

Similarly to #81, if you set prop.readOnly false in an input then the input has the readonly attribute making it read only.

Html.input [
    prop.value "Some text"
    prop.readOnly false
]

generates:

<input _svid="27" readonly="false" >

but the input cannot be edited.

Work around:

Html.input [
    prop.value "Some text"
    if false then // Condition
        prop.readOnly true
]
davedawkins commented 1 month ago

I did think I'd fixed this. Let me look into it.

davedawkins commented 1 month ago

Fixed in Sutil 2.0.14