Skip to content

Commit

Permalink
fix(input): allow button click when input has focus
Browse files Browse the repository at this point in the history
only show clear input button when input has focus.

closes #6514 and closes #6944
  • Loading branch information
brandyscarney committed Jun 24, 2016
1 parent 4479a01 commit ae86ab8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ input.text-input:-webkit-autofill {
}

.input-has-focus input,
.input-has-focus textarea {
.input-has-focus textarea,
.input-has-focus a,
.input-has-focus button {
pointer-events: auto;
}

Expand Down Expand Up @@ -136,7 +138,7 @@ input.text-input:-webkit-autofill {
background-position: center;
}

.input-has-value .text-input-clear-icon {
.input-has-focus.input-has-value .text-input-clear-icon {
display: block;
}

Expand Down
4 changes: 4 additions & 0 deletions src/components/input/test/clear-input/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
<button item-right (click)="clicked()">Button</button>
</ion-item>

<ion-item>
<input type="text" placeholder="Native Input"/>
<button item-right (click)="clicked()">Button</button>
</ion-item>
</ion-list>

</ion-content>

0 comments on commit ae86ab8

Please sign in to comment.