Skip to content

Commit

Permalink
fix(btn): only render clear button when input is not disabled #309
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 committed May 7, 2024
1 parent 2ca091f commit 00c3e1f
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/auro-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,17 @@ export class AuroInput extends BaseInput {
</button>
</div>
` : undefined}
<div class="notification">
<button
class="notificationBtn clearBtn"
aria-hidden="true"
tabindex="-1"
@click="${this.handleClickClear}">
${this.readonly ? undefined : this.closeSvg}
</button>
</div>
${!this.disabled ? html`
<div class="notification">
<button
class="notificationBtn clearBtn"
aria-hidden="true"
tabindex="-1"
@click="${this.handleClickClear}">
${this.readonly ? undefined : this.closeSvg}
</button>
</div>
` : undefined}
` : undefined}
</div>
</div>
Expand Down

0 comments on commit 00c3e1f

Please sign in to comment.