Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/uui-input-lock/lib/uui-input-lock.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export class UUIInputLockElement extends UUIInputElement {
@property({ type: Boolean, reflect: true })
public set locked(lock: boolean) {
this.#locked = lock;
this.readonly = lock;
this.tabIndex = lock ? -1 : 0;
}
public get locked(): boolean {
Expand Down Expand Up @@ -63,7 +64,7 @@ export class UUIInputLockElement extends UUIInputElement {
}

_onLockToggle() {
this.readonly = this.locked = !this.locked;
this.locked = !this.locked;
this.pristine = false;
this.dispatchEvent(new UUIInputLockEvent(UUIInputLockEvent.LOCK_CHANGE));
if (!this.locked) {
Expand Down
Loading