Pass Htmlable to TextInput suffix
Hi,
I am trying to understand why passing
Htmlable
to TextInput->label()
will render the HTML, whereas passing Htmlable
to TextInput>suffix()
will show the HTML source code.
Where in the source code is this implemented?
Is the type hinting of suffix
incorrect for hinting it as accepting Htmlable
?
(I found that elements which use CanFormatState
will render the Htmlable
in the call to formatState
. But form components don't seem to be using CanFormatState
)1 Reply
Actually passing in a
HtmlString
seems to work, but passing in a view()
doesn't work. Any ideas?