Merge branch 'next' of github.com:Buni48/shoelace into Buni48-next

pull/800/head
Cory LaViska 2022-06-22 08:57:36 -04:00
commit 200d340123
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -299,7 +299,8 @@ export default class SlInput extends LitElement {
const hasHelpTextSlot = this.hasSlotController.test('help-text');
const hasLabel = this.label ? true : !!hasLabelSlot;
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
const hasClearIcon = this.clearable && !this.disabled && !this.readonly && this.value.length > 0;
const hasClearIcon =
this.clearable && !this.disabled && !this.readonly && (typeof this.value === 'number' || this.value.length > 0);
return html`
<div