-
Notifications
You must be signed in to change notification settings - Fork 187
Range Slider doesn't work inside modal view #121
Comments
Hello, thanks for opening an issue with us! Would you be able to provide a plunker that demonstrates this issue? Thanks for using Ionic! |
From @ninoguba on June 14, 2016 1:49 I don't have a plunker but you can view this with Ionic View using this ID: fcf03f24 All I did here was just start with the blank starter project and modified the following files: index.html (replace body with this)
app.js (add this code)
modal-range.html (create this file)
|
From @basdp on June 29, 2016 14:20 This is the malefactor: I fixed it temporarily by changing the code to: var isInScroll = ionic.DomUtil.getParentOrSelfWithClass(e.target, 'scroll');
if (isInScroll !== null && !isInScroll) {
e.preventDefault();
} |
From @danmatthews on September 23, 2016 14:25 +1 for this - the only way to get it working for me seems to be to downgrade to 1.2.0 😢 |
Another fix that doesn't involve changing Ionic's code is to simply add the <div class="range">
<input type="range" class="scroll" />
</div> |
This issue made me get coffee twice more often than I usually do. Why does class="scroll" work? |
Hehe, I suppose I should have included some explanation. The offending code can be found here: https://github.com/driftyco/ionic-v1/blob/master/js/angular/service/modal.js#L190 As you can see, Like I alluded to, I won't pretend to understand all the possible side effects this might have... but so far it's been fine for my use! |
@shanesmith I agree. This works for me! |
Wasted a few hours trying to find a solution for this. Thanks @shanesmith for the quick fix. |
From @ninoguba on June 13, 2016 17:33
Short description of the problem:
Range Slider is not draggable when inside a modal view running on the phone.
What behavior are you expecting?
Range Slider should be draggable to select desired value.
Steps to reproduce:
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
When ran on Chrome browser, the range slider is at least tappable allowing to change the value but dragging the slider is still not working. The following message is appearing in my console the moment I tap or try to drag the slider:
Which Ionic Version? 1.2.x up to 1.3.x
Copied from original issue: ionic-team/ionic-framework#6885
The text was updated successfully, but these errors were encountered: