Skip to content

Commit a9f278a

Browse files
fix(item): router-link remains clickable with item cover (#29743)
Issue number: N/A --------- ## What is the current behavior? Item includes `ion-anchor` in the list of clickable components it queries. This component was renamed to `ion-router-link` in [v5](https://github.com/ionic-team/ionic-framework/blob/main/BREAKING_ARCHIVE/v5.md#anchor). ## What is the new behavior? Updates the reference to `ion-anchor` to `ion-router-link` in `ion-item`. ## Does this introduce a breaking change? - [ ] Yes - [x] No
1 parent bfee3cd commit a9f278a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/components/item/item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class Item implements ComponentInterface, AnchorInterface, ButtonInterfac
191191
);
192192

193193
// The following elements should also stay clickable when an input with cover is present
194-
const clickables = this.el.querySelectorAll('ion-anchor, ion-button, a, button');
194+
const clickables = this.el.querySelectorAll('ion-router-link, ion-button, a, button');
195195

196196
// Check for multiple inputs to change the position of the input cover to relative
197197
// for all of the covered inputs above

0 commit comments

Comments
 (0)