Browse Source

fix empty string value option

221V 1 year ago
parent
commit
b0566d8c4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/render/wf_tags.erl

+ 1 - 1
src/render/wf_tags.erl

@@ -36,7 +36,7 @@ write_props(Props) -> lists:map(fun display_property/1, Props).
 
 display_property({_, undefined}) ->
   [];
-display_property({_, []}) ->
+display_property({Id, []}) when (Id =/= <<"value">>) andalso (Id =/= <<"disabled value">>) andalso (Id =/= <<"selected value">>) andalso (Id =/= <<"selected disabled value">>) -> %% fix empty string value option
   [];
 display_property({Id, Value} = P) when (Id == <<"class">> andalso (erlang:is_list(Value) andalso erlang:is_atom(hd(Value)))) orelse Id == <<"data-toggle">> ->
   prop(P);