Fix auto-close knob showing range thumb on iOS Safari
On iOS Safari, the native range input thumb appears as a white ball in the center of the auto-close knob component, overlaying the custom UI.
Fix
Hide the range input on iOS Safari using a @supports feature query that targets WebKit on iOS.
| Before | After |
|---|---|
I haven't been able to reproduce this. Is it only happening in a particular version of Mobile Safari? I'm on iOS 26.1.
I don't love that this uses a generic @supports query to target Safari instead of querying for this specific feature. Dumb question: did you try -webkit-appearance: none;. Sometimes that's still effective even when appearance: none should work.
It's also not mobile specific, I get this in desktop on Safari 17.6
.
I haven't been able to reproduce this. Is it only happening in a particular version of Mobile Safari? I'm on iOS 26.1.
I don't love that this uses a generic
@supportsquery to target Safari instead of querying for this specific feature. Dumb question: did you try-webkit-appearance: none;. Sometimes that's still effective even whenappearance: noneshould work.
@jzimdars I tried another approach using opacity: 0 directly on .knob__slider and it works! In my case it happens on iOS 17.6.1.
It's also not mobile specific, I get this in desktop on Safari 17.6
@foucist Can you test with this new commit?
I don't have an older version of Safari to test with but I can confirm the opacity: 0 doesn't break the intended behavior in Firefox and Chrome.
So this one is good to merge @jzimdars?
@jorgemanrubia I was hoping that @foucist would confirm it fixed the issue for him but even if it doesn't, it's harmless and ok to merge.
Sorry, I got stuck with dev env issues so I wasn't able to test it locally. Looks good to me on app.fizzy.do now.
No worries. Thanks for looking!