Ionic click events not working on device


My click events work fine using ionic serve but are not working on either ios or android.

I’m following a video tutorial and also written ones, which tell me to use the following

<button ion-button icon-only (click)="CancelPickup();">


import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';

  selector: 'page-home',
  templateUrl: 'home.html'
export class HomePage {
  constructor(private navCtrl: NavController) {
    this.isPickupRequested = false;

  CancelPickup() {
    this.isPickupRequested = false;
    console.log("cancel pickup ran");

Am I missing something obvious because when I click the buttons nothing happens at all?

Also tried the (tap) event.

It’s due to my map which is blocking the events being passed to the buttons!

1 Like