New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Range Slider doesn't work inside modal view #6885
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! |
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)
|
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();
} |
Thanks @basdp I'll give this a try. |
+1 for this - the only way to get it working for me seems to be to downgrade to 1.2.0 😢 |
As a workaround you can use @basdp's code above. I verified it resolves the issue with sliders on modals. |
This issue was moved to ionic-team/ionic-v1#121 |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
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
The text was updated successfully, but these errors were encountered: