mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
chore(input): clearInput is ported to modern input
This commit is contained in:
@ -651,6 +651,7 @@ export class Input implements ComponentInterface {
|
||||
[`input-shape-${shape}`]: shape !== undefined,
|
||||
[`input-label-placement-${labelPlacement}`]: true,
|
||||
'in-item': hostContext('ion-item', this.el),
|
||||
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
||||
})}
|
||||
>
|
||||
<label class="input-wrapper">
|
||||
|
||||
@ -100,7 +100,7 @@ test.describe('input: clear button', () => {
|
||||
test('should inherit color when used in item with color property', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
<ion-item color="primary">
|
||||
<ion-input value="Text" clear-input="true"></ion-input>
|
||||
<ion-input aria-label="my label" value="Text" clear-input="true"></ion-input>
|
||||
</ion-item>
|
||||
`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user