mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
fix(input): allow button click when input has focus
only show clear input button when input has focus. closes #6514 and closes #6944
This commit is contained in:
@ -96,7 +96,9 @@ input.text-input:-webkit-autofill {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.input-has-focus input,
|
.input-has-focus input,
|
||||||
.input-has-focus textarea {
|
.input-has-focus textarea,
|
||||||
|
.input-has-focus a,
|
||||||
|
.input-has-focus button {
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,7 +138,7 @@ input.text-input:-webkit-autofill {
|
|||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-has-value .text-input-clear-icon {
|
.input-has-focus.input-has-value .text-input-clear-icon {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
<button item-right (click)="clicked()">Button</button>
|
<button item-right (click)="clicked()">Button</button>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
|
<ion-item>
|
||||||
|
<input type="text" placeholder="Native Input"/>
|
||||||
|
<button item-right (click)="clicked()">Button</button>
|
||||||
|
</ion-item>
|
||||||
</ion-list>
|
</ion-list>
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
Reference in New Issue
Block a user