Fixed <xf:tokeninput> tag can't be used inside <xf:option> tag

Xon

Well-known member
Affected version
2.0 RC2
Putting a <xf:textbox> and <xf:select> tag inside of an <xf:option> allows them to be disabled by the option tag being toggled.

However, you can't use an <xf:tokeninput> tag inside of an <xf:option> tag, which is somewhat annoying as it is a select2 element is ultimately a combination of a textbox & select tags and a lot of javascript goop which respects if it's underlying <select> tag is enabled/disabled.
 
My use case is I can have a textbox with username autocomplete inside an <xf:option> , but I'ld like to have a tokeninput to support multiple inputs with username autocomplete (ie a list of usernames)

:edit: after a bit more fiddling, a textbox with ac="multiple" works how I want it. Confusing.

Perhaps move this to a suggestion?
 
Reasonable suggestion, though we will probably look to make this one of the allowed tags here.

Generally <xf:dependent> would be used to add more complex syntax or raw HTML, but other form based tags will generally be whitelisted to work there. We'll look to whitelist tokeninput as well.
 
Top Bottom