Closed ciekawy closed 4 years ago
Just found that updating @bugsnag/js
to version 6.4.3
solved the issue.
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:
when used with Bugsnag integration,
ion-select
(tested with multiple choice) using defaultion-alert
accepts only first change, no reaction for subsequent clicks on option checkboxes.Expected behavior:
Able to make multiple changes.
Steps to reproduce:
was trying to reproduce the issue but without success. I believe this may be related to change detection or sth, as new click handlers are added during
ion-alert
component updateWhat I found is that this is combination of BugSnag which I use and
ion-select
implementation:ion-alert
(used to displayion-select
)click
handler triggersHostElement.forceUpdate
and during the updateclick
listeners are removed and re-added.@ionic/angular
click handler removal code fragment:Bugsnag intercepts
addEventListener
andremoveEventListener
methods and for some reasonremoveEventListener
calls (at least forclick
handlers) has no effect. Bugsnag beginning of eventListener handling interception code (just for reference, I believe the conflict is in other place and the method is long):in consequence after each click there new duplicated
click
handler are added to each button and checkbox click handles are not working correctly (i.e. it is not possible to do more than one change)I believe there is some conflict in the handlers registering/deregistering code yet not sure how to proceed - possibly some fix is required in either Ionic or Bugsnag.
I was not able to reproduce the issue using this Ionic Angular StackBlitz (using test Bugsnag account): https://stackblitz.com/edit/ionic-v4-m21b3k - I believe this may be related to the change detection strategy or some similar setting...
Other information:
Ionic info: