Closed EskelCz closed 1 year ago
@EskelCz this should do the trick hopefully?
document.querySelector('.svelte-select input[type=hidden]').value
@rob-balfre I somehow missed the hidden input, sorry. I can use that, sure. :) Thanks
@rob-balfre But I must say it would be nicer to have the behavior unified, for the sake of consistency and simplicity of use. The ID set on svelte-select is passed down onto the visible input, which makes it for a natural direct selector.
@EskelCz it is. The input you were targeting is the filter input. It loses its value after selection
Please would it be possible to expose the current list of selected values of a multiselect, from the HTML element? With a single select it works fine.
Reproduction:
document.getElementsByTagName('input')[0].value
in console.I could really use a string of comma separated values, for automated Cypress testing. Thanks for your consideration.