-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: ion-img should accept draggable prop #21325
Comments
Thanks for the issue! This issue has been labeled as Please provide a reproduction with the minimum amount of code required to reproduce the issue. Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed. For a guide on how to create a good reproduction, see our Contributing Guide. |
It's simple to reproduce. I made an app where the user can drag and rotate markers on an image. The experience is annoying if the image is draggable. With normal I made demo here: https://stackblitz.com/edit/ionic-pnlxgp?file=pages%2Fhome%2Fhome.html |
draggable="false"
draggable="false"
This issue has been labeled as If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort. For a guide on how to create a pull request and test this project locally to see your changes, see our contributing documentation. Thank you! |
The problem is that the browser defaults to EDIT; |
@liamdebeasi issue mentioned here; ionic-team/stencil#2484 |
@liamdebeasi I submitted a fix for this in Stencil. So after this is out and upgrading, you'll just need to pass the like so: <img
// ....
draggable={this.el.getAttribute('draggable') || undefined}
/> ( |
I just tested with "@stencil/core": "^1.15.0-2" and I can confirm it will be achievable after stencil upgrade. |
…24781) Resolves #21325 Co-authored-by: Celilsemi Sam Erkiner <[email protected]> Co-authored-by: Liam DeBeasi <[email protected]>
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. |
This basic functionality of html should work as <img draggable="false> so we can disable the default drag option for
The text was updated successfully, but these errors were encountered: