(fix)修复li在input类型下value值未绑定的问题
This commit is contained in:
parent
d3327c5809
commit
1f93aa5858
|
@ -303,6 +303,8 @@ export class StarLi extends StarBaseElement {
|
|||
<input
|
||||
placeholder=${ifDefined(this.placeholder)}
|
||||
value=${ifDefined(this.value)}
|
||||
@change=${(e: UIEvent) =>
|
||||
(this.value = (e.target as HTMLInputElement).value)}
|
||||
@focus=${() => this.setAttribute('active', '')}
|
||||
@blur=${() => this.removeAttribute('active')}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue