ionic-team / ionic-team/ionic-framework

bug: ion-button should be disabled when used inside disabled fieldset

Open
#23,462 0 comments 0 reactions 0 assignees View on GitHub
package: core type: bug
Dominant language
TypeScript
Stars
52.7k
Forks
13.3k
Avg merge
1d 15h
Merged PRs (30d)
51

Description

# Bug Report

**Ionic version:**
[x] **5.6.8**

**Current behavior:**
`` inside a disabled `` remains not disabled.

**Expected behavior:**
`` inside a disabled `` should become disabled. This is the behavior of a native `` when placed inside a disabled ``.

**Steps to reproduce:**
Put an `` inside a ``. ([CodePen](https://codepen.io/SepehrSepahi/pen/zYZeVJQ))

**Related code:**
```html

Disabled Fieldset
Native Button
Ion-Button

```

Contributor guide

Open the contributing guide

Research direction

Start with the ion-button component and reproduce the issue using the linked CodePen or a fieldset disabled example. Compare its behavior with the native button, then verify that ion-button becomes disabled when placed inside a disabled fieldset.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.