Running into this odd behaviour, thinking perhaps its a bug, but who knows, I may be doing something wrong. Have followed the Pae structure of the auto generated app.
I have a list of buttons generated through an *ngFor, each button is clickable and pushes a new page.
When one of the list items is clicked, a new page is pushed into the stack and it shows up. Perfect. I click “back” on the auto generated button, it takes me back the root view. Perfect.
However when I click any button on the there after it requires a double click to navigate. Almost as the focus has been taken off the element onto the element, and it now requires one click to re-focus, then the second click to run the desired method.
Obviously not an intended behaviour of a native app. Anyone else run into this? Ideas of how to fix?
I have my rootPage, within there structure goes along the lines:
It may be possible that the button is being wrapped around another element that blocks the ui-interaction with that button for a while (couple of seconds).
If you find such an element, try adding the pointer-events: none; css property to it, this makes it so presses go through the element and allows you to reach the button with a tap.
it happens after a back action “navController.pop”
When I first load the first page, click the link, everything’s fine, it goes to the second page.
I hit back, click the same link, nothing happens. Click again the same link, then I go to the second page again.
Haven’t tested this thoroughly yet, but I think this issue may be a side effect of having created my navbar as a component, and then passed the component in on all the pages where needed. Noticed when I am in child views where the navbar was drastically different, and I created them within the page themselves, this doesn’t seem to be an issue.
Again, has not been confirmed, but is a hunch I’m having. Will update once tested