equinor / equinor/mad

Disabled buttons freeze their visual onPress state

Open
#752 2 comments 0 reactions 2 assignees Claimed by @SUBBH-Equinor View on GitHub
bug
Dominant language
TypeScript
Stars
23
Forks
3
Avg merge
1d 17h
Merged PRs (30d)
4

Description

### Package / App

MAD Components

### Version

0.23.0 (latest)

### What happened?

See video:
https://github.com/user-attachments/assets/fe34177c-2beb-4fb5-adcf-4977e2d5551d

It seems buttons that are quickly disabled after being pressed freeze their visual on press state.

### Other info

Code example:

```tsx
export const ButtonBug = () => {
const [isBuggyByttonDisabled, setIsBuggyButtonDisabled] = useState(false);

return (

Disabled button bug

{
"When the button is disabled quickly after being pressed, the onPressed state of the button seems to be stuck as if a user is holding on it"
}

setIsBuggyButtonDisabled(true)}
/>
null} />

);
};
```

### Relevant log output

```shell

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.