# Remove cancel in action-sheet

**URL:** <https://forum.ionicframework.com/t/remove-cancel-in-action-sheet/198638>\
**Category:** Ionic React\
**Created:** [October 27, 2020, 4:45pm UTC](https://forum.ionicframework.com/t/remove-cancel-in-action-sheet/198638 "2020-10-27T16:45:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asharonbaltazar](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@asharonbaltazar](https://forum.ionicframework.com/u/asharonbaltazar)\
**Post date:** [October 27, 2020, 4:45pm UTC](https://forum.ionicframework.com/t/remove-cancel-in-action-sheet/198638/1 "2020-10-27T16:45:50Z")

</div>

How can I remove the “Cancel” option from the action-sheet?

---

<div class="post-metadata">

**Author:** ![max](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/max/32/137761_2.png) [@max](https://forum.ionicframework.com/u/max)\
**Post date:** [October 27, 2020, 5:20pm UTC](https://forum.ionicframework.com/t/remove-cancel-in-action-sheet/198638/2 "2020-10-27T17:20:04Z")

</div>

Just don’t specify an item in the `buttons` option with `role: 'cancel'`

> **[ionic-react-textarea-count-snb7ge - StackBlitz](https://stackblitz.com/edit/ionic-react-textarea-count-snb7ge?file=src%2FApp.js)**
>
> Starter project for React apps that exports to the create-react-app CLI.

---

<div class="post-metadata">

**Author:** ![asharonbaltazar](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@asharonbaltazar](https://forum.ionicframework.com/u/asharonbaltazar)\
**Post date:** [October 27, 2020, 5:29pm UTC](https://forum.ionicframework.com/t/remove-cancel-in-action-sheet/198638/3 "2020-10-27T17:29:06Z")

</div>

I’m using `<IonSelect>`

```auto
<IonSelect
        interface="action-sheet"
        interfaceOptions={{
          header: "Units",
          buttons: [
            {
              text: "Delete",
              role: "destructive",
              handler: () => {
                console.log("Delete clicked");
              },
            },
            {
              text: "Share",
              handler: () => {
                console.log("Share clicked");
              },
            },
            {
              text: "Play (open modal)",
              handler: () => {
                console.log("Play clicked");
              },
            },
            {
              text: "Favorite",
              handler: () => {
                console.log("Favorite clicked");
              },
            },
          ],
        }}
        value={windSpeedPreference}
        onIonChange={e => dispatch(changeWindSpeedPreference(e.detail.value))}
      ></IonSelect>

```

This isn’t working. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![max](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/max/32/137761_2.png) [@max](https://forum.ionicframework.com/u/max)\
**Post date:** [October 27, 2020, 5:36pm UTC](https://forum.ionicframework.com/t/remove-cancel-in-action-sheet/198638/4 "2020-10-27T17:36:40Z")

</div>

Unfortunately, it’s not possible with `IonSelect`, as the cancel button is hard coded.

If you really need to not have this button here, then instead of using `IonSelect` just use the action sheet directly as in my example.
