Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

"sync" with original select #112

Open
katzenmayer opened this issue Apr 26, 2019 · 3 comments
Open

"sync" with original select #112

katzenmayer opened this issue Apr 26, 2019 · 3 comments

Comments

@katzenmayer
Copy link

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?

@trailsnail
Copy link

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

@katzenmayer
Copy link
Author

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

@ant1d0t
Copy link

ant1d0t commented Aug 6, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants