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: Item slide disabled is set to false on ngOnChanges, but is still disabled with HammerJS #19848
Comments
Thanks for the issue. It looks like disabling/re-enabling the gesture via HammerJS leaves our internal gesture system at an inconsistent state. I will be putting up a PR soon that addresses this. |
Can you give the following dev build a try and let me know if it resolves your issue?
|
Hi, apparently it works with this dev build. I'm just in doubt if I can use ionic/angular@4.8+ with angular 7 without much problems, since I've tried upgrading it to angular 8 and there were a few issues with CSS due to how its set on my project, which led me to downgrade again. Is this already usable for production or is it still testing? |
Glad to hear the dev build works. The dev build I provided is essentially the contents of Ionic Framework v4.11.3 plus this bug fix, so it should be safe to use in production if you need to deploy a hotfix. Once this fix releases in an upcoming version of Ionic, I would recommend switching over to that version. |
Thanks for the issue. This issue has been fixed via #19855 and will be available in an upcoming release of Ionic Framework. |
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. |
Bug Report
Ionic version:
[x] 4.x
Current behavior:
Attempting to set disabled with Hammer JS gesture to ion-item-sliding on template based on Input variable only receives the first change, but never executes the changes made afterwards. This also happens if you try to set this with ngOnChanges, first change is executed, never the afterwards.
Expected behavior:
ion-item-sliding disable property should receive all changes via template when they happen or via controller with ngOnChanges. These changes should be identified with Hammer JS.
Steps to reproduce:
Related code:
https://stackblitz.com/edit/ionic-v4-angular-tabs-gdokuu
The component is found inside the "tab1" folder, and its called on "tab1.page.html".
Press and hold the item "Test Item" to disable the item slide.
If you wish to see with ngOnChanges, just uncomment ngOnChanges and ViewChild on item-slide.component.ts, comment the second line and uncomment the first line on item-slide.component.html.
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: