Selectr icon indicating copy to clipboard operation
Selectr copied to clipboard

"sync" with original select

Open katzenmayer opened this issue 5 years ago • 3 comments

I have a script that changes the selected attributes of the options of the original select. Selectr does not detect this. Is there a way to force Selectr to re-read the selected options from the original select?

katzenmayer avatar Apr 26 '19 15:04 katzenmayer

Why not change the script to use the Selectr instance and call mySelectr.setValue('new-value') or mySelectr.setValue('old-value'); // deselect an item ?

trailsnail avatar Jul 04 '19 16:07 trailsnail

Unfortunately, the script that does the changes to the original select is from a third party, and I have no control over it.

katzenmayer avatar Jul 05 '19 09:07 katzenmayer

if you mean by thirdparty that you load it via cdn or something... fine still you could modify it. But if you don't want to do that, than store the values in variables an pass it on to the selectr obj.

ant1d0t avatar Aug 06 '19 08:08 ant1d0t