Mobius1 / Selectr

A lightweight, vanilla javascript select box replacement. No dependencies.
MIT License
312 stars 77 forks source link

AJAX & Adding options on iPad/ios [bug] #66

Open kieranja opened 6 years ago

kieranja commented 6 years ago

Hey,

I've noticed that there is a slight issue when dynamically changing options (.removeAll then .add multiple times) on IOS/my ipad more specifically. Can be reproduced in Chrome by selecting iPad in dev tools.

The drop-down will work on Desktop devices, but not my iPad - I took a look it was fixed by adding a this.el.appendChild(option); to .add, however, i imagine this isn't the ideal solution and I didn't have too much time to look into it, so couldn't seen if that was a correct way to fix it!

I understand you fall back to the native dropdowns - which is great, however, the issue is that no options are added at all when using .add :(

Thanks Kieran

Mobius1 commented 6 years ago

I'll get a fix out ASAP.

francescoscaringi commented 5 years ago

Hi! There are some news about this bug? I have casually discovered this problem on different systems that I have created and I don't know how to resolve. If you want reproduce the bug you can simulate mobile with Chrome going here: https://codepen.io/Mobius1/pen/QgdpLN

Thank you!

navjinder commented 5 years ago

Any updates on this issue?

Antonides commented 5 years ago

Anybody have a workaround for this?