Javascript 事件处理程序单击而不是选择

Javascript 事件处理程序单击而不是选择,javascript,Javascript,我有一个带有用户列表的离子选择, 在此列表中,我有一个选项可以将我重定向到另一个页面: 在我的列表中,我有一个项目,当它选择它并重定向我时,它会像一个按钮一样工作,我只希望它像一个按钮一样工作,不被选中 我的名单: 请问有什么办法处理这个问题吗 <ion-select interface="popover" [ngModel]="selecteduser._id" (ngModelChange)="selectUser($event)" (ionChange)="onChange($

我有一个带有用户列表的离子选择, 在此列表中,我有一个选项可以将我重定向到另一个页面: 在我的列表中,我有一个项目,当它选择它并重定向我时,它会像一个按钮一样工作,我只希望它像一个按钮一样工作,不被选中

我的名单:

请问有什么办法处理这个问题吗

  <ion-select interface="popover" [ngModel]="selecteduser._id" (ngModelChange)="selectUser($event)" (ionChange)="onChange($event)">
    <ion-option *ngFor="let user of users" [value]="user._id">
      </ion-content>{{ getUserNickname(user }} </ion-option>
    <ion-option>Go To Modal</ion-option>
  </ion-select>

如果我理解正确,您需要禁用它的选择和写入逻辑的默认行为manually@KasabuckiAlexandr是的,先生,只有最后两项。所以您应该防止选择和处理更改的默认行为manually@KasabuckiAlexandr你能告诉我怎么做吗?我卡住了
  onChange(value: any) {
    if (value === 'Go To Modal') {
      this.openConfig()
    }
  }

  openConfig() {
    this.modalCtrl.create(configModal).present()
    console.log('heeey')
  }

  selectUser(userId: string) {
    this.selectedUser = this.users.find(b => b._id === userId)
    this.onSelect.emit(this.selectedUser)
  }