Ion-item-sliding close() and open() disables options events

I’m porting an app from ionic 6/cordova to ionic 7/capacitor and something that used to work on the old app is not functioning in the new one.

The scenario is that I’m using an ion-list of ion-item-sliding and I want to be able to dynamically add extra options into an open sliding row.

When I add an option to the row, it appears OK, but the ion-item-sliding text may now fully/partially cover it. So to get around this, I programmatically close() and open() the ion-item-sliding and the options are now fully visible.

Only problem now is that they are no longer clickable and the sliding item itself can’t be manually closed.

I’ve recreated the issue in this app based on the blank example…

Slide the item open. Click on the button to add extra option. Options appears OK… but no events.

<ion-header [translucent]="true">

<ion-content [fullscreen]="true">
  <ion-header collapse="condense">
      <ion-title size="large">Blank</ion-title>

  <div id="container">
      <ion-item-sliding #slider (ionDrag)="dragEvent($event, slider)">
          <ion-label>Line 1</ion-label>
          <ion-item-option (click)="doSomething()">Do Something</ion-item-option>
          <ion-item-option *ngIf="option2enabled" (click)="doNothing()">Do Nothing</ion-item-option>

    <ion-button *ngIf="line1 !== undefined" (click)="addOption()">Add option</ion-button>
import { Component } from '@angular/core';
import { IonItemSliding } from '@ionic/angular';

  selector: 'app-home',
  templateUrl: '',
  styleUrls: [''],
export class HomePage {

  line1?: IonItemSliding 

  option2enabled: boolean = false

  constructor() {}

  doSomething() {
    console.log("doing something...")

  doNothing() {
    console.log("doing nothing...")

  dragEvent(event: any, slider: IonItemSliding) {
    this.line1 = slider
    console.log(JSON.stringify(event), slider)

  addOption() {
    this.option2enabled = true