fix: second visual ui bug

This is when the UI doesn't show that logic config is actually pointing at a target field, despite not showing it visually.
This is also when a 'comparator' is chosen, even when one is not configured
This commit is contained in:
Adriano Caloiaro 2025-02-18 16:46:35 -07:00
parent 5b9c33a19f
commit daa5d4cc69
No known key found for this signature in database
GPG key ID: C2BC56DE73CE3F75
3 changed files with 4 additions and 4 deletions

View file

@ -142,7 +142,7 @@ templ Selector(args SelectArgs) {
_={ args.Hyperscript }
}
>
<option disabled>{ args.Placeholder }</option>
<option selected disabled>{ args.Placeholder }</option>
</select>
<div id={ dataElementID(args) } data-args={ templ.JSONString(args) } _={ fmt.Sprintf("init initializeSelect('%s')", dataElementID(args)) }></div>
<!-- when OptionsContent

View file

@ -287,14 +287,14 @@ func Selector(args SelectArgs) templ.Component {
return templ_7745c5c3_Err
}
}
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "><option disabled>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 16, "><option selected disabled>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
var templ_7745c5c3_Var10 string
templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(args.Placeholder)
if templ_7745c5c3_Err != nil {
return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/selector/selector.templ`, Line: 145, Col: 37}
return templ.Error{Err: templ_7745c5c3_Err, FileName: `ui/selector/selector.templ`, Line: 145, Col: 46}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10))
if templ_7745c5c3_Err != nil {

View file

@ -13,7 +13,7 @@
\"
_=\"
\"
><option disabled>
><option selected disabled>
</option></select><div id=\"
\" data-args=\"
\" _=\"