inputs icon indicating copy to clipboard operation
inputs copied to clipboard

Inputs.bind for multiple select in vanilla HTML

Open dleeftink opened this issue 3 years ago • 0 comments

Currently, Inputs.bind works fine for Inputs.select when{multiple:true}, but falls back to a single value when binding two vanilla HTML select boxes like so:

source = html`<select multiple><option>Aa</option><option>Bee</option></select>`
target = html`<select multiple><option>Aa</option><option>Bee</option></select>`
Inputs.bind(target, source)

This might be intended behaviour, but it would be useful if selectedOptions for two vanilla select boxes could be bound as well.

dleeftink avatar Apr 19 '22 23:04 dleeftink