iOS - Button Click is ignored when there is a dynamic view created based on a touch or mouse Event #50230
Labels
area: core
Issues related to the framework runtime
iOS
Issue related to Apple's iOS operating system
needs reproduction
This issue needs a reproduction in order for the team to investigate further
state: needs more investigation
Milestone
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
This bug is only happening in iOS:
If a view is created through
*ngIf
orViewContainerRef.createEmbeddedView
based on an event listener totouchstart
or other mouse events and there is a button outside of the dynamic view then this button need to be clicked twice in order for the click event to be fired.A minimal reproduction example is this:
In this example the
Hello
button needs to be clicked twice in iOS. If you remove the (click) event from the span inside the dynamic view then theHello
button needs to be clicked only oncePlease provide a link to a minimal reproduction of the bug
https://github.com/jbchr/angular-ios-click-bug
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: