question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Range slider not working on iPhone

See original GitHub issue

Sweetalert range slider not working on iPhone both with Safari and Chrome, I am not able to move the slider in any direction, it’s not possible to move the slider left and/or right with the phone.

This is the code I am using in my project:

Swal.fire({
  title: 'Lease',
  html: '<small>Lease value</small>',
  input: 'range',
  confirmButtonText: 'Confirm',
  showCancelButton: true,
  cancelButtonColor: '#aaa',
  inputAttributes: {
    min: 0.001,
    max: 5,
    step: 0.001
  },
  inputValue: 0.001,
  preConfirm: (value) => {
    alert(vaue);
  }
});

Tried also at the demo link https://sweetalert2.github.io/#input-range but it doesn’t work. Using iPhone X device and Safari 12 (same result using Chrome).

Thank you

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
gvernicommented, May 31, 2019

Yes @limonte, I should be able to do it in about 4 hours

1reaction
limontecommented, May 31, 2019

Oops, that’s a regression from https://github.com/sweetalert2/sweetalert2/pull/1596

Thanks @ledzgio for reporting, the fix is coming in a couple of minutes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Input range slider not working on iOS Safari when clicking on ...
The main problem I have is when I click on the slider track, it doesn't move the slider. It merely highlights the slider....
Read more >
Input range slider not working on iOS Safari when ... - YouTube
iOS : Input range slider not working on iOS Safari when clicking on track [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ]...
Read more >
Can't set the slider to 0 | Apple Developer Forums
I'm trying to make my sliders at 0 make no shape but the issue is when any slider hits 0 it makes the...
Read more >
Some range inputs not working in iOS Safari - CSS-Tricks
The slider for the audio scrubbing is working, but the volume slider refuses to work on IOS. It does work on macOS Safari...
Read more >
Range slider in iOS not work as expected - Syncfusion
I am using SfRangeSlider in Xamarin.forms app. I used range slider to select between two times. e.g. 10AM to 12PM. It works fine...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found