Merge pull request #223 in YR/star-web-components from fix-li-input-no-value to master
* commit '1f93aa5858770f24721f2ba41860b49c0ed90303': (fix)修复li在input类型下value值未绑定的问题
This commit is contained in:
commit
d89fc498b5
|
@ -303,6 +303,8 @@ export class StarLi extends StarBaseElement {
|
||||||
<input
|
<input
|
||||||
placeholder=${ifDefined(this.placeholder)}
|
placeholder=${ifDefined(this.placeholder)}
|
||||||
value=${ifDefined(this.value)}
|
value=${ifDefined(this.value)}
|
||||||
|
@change=${(e: UIEvent) =>
|
||||||
|
(this.value = (e.target as HTMLInputElement).value)}
|
||||||
@focus=${() => this.setAttribute('active', '')}
|
@focus=${() => this.setAttribute('active', '')}
|
||||||
@blur=${() => this.removeAttribute('active')}
|
@blur=${() => this.removeAttribute('active')}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue