mirror of
https://github.com/acaloiaro/frm
synced 2026-07-21 10:12:23 +00:00
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:
parent
5b9c33a19f
commit
daa5d4cc69
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
\"
|
||||
_=\"
|
||||
\"
|
||||
><option disabled>
|
||||
><option selected disabled>
|
||||
</option></select><div id=\"
|
||||
\" data-args=\"
|
||||
\" _=\"
|
||||
|
|
|
|||
Loading…
Reference in a new issue