File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ data Msg;
2020void text (value v ) = _text(v );
2121
2222
23+
2324@doc {The element render functions below all call build
2425to interpret the list of values; build will call the
2526second argument (_h1 etc.) to construct the actual
@@ -184,7 +185,7 @@ Attr multiple(bool val) = val ? attr("multiple", "<val>") : null();
184185Attr name (str val ) = attr ("name" , val );
185186Attr novalidate (bool val ) = attr ("novalidate" , "<val > " );
186187Attr pattern (str val ) = attr ("pattern" , val );
187- Attr readonly (bool val ) = attr ("readonly" , "<val > " );
188+ Attr readonly (bool val ) = val ? attr ("readonly" , "<val > " ) : null ( );
188189Attr required (bool val ) = attr ("required" , "<val > " );
189190Attr size (int val ) = attr ("size" , "<val > " );
190191Attr \for (str val ) = attr ("for" , val );
You can’t perform that action at this time.
0 commit comments