Skip to content

Commit

Permalink
fix(input): input readonly not emit focus
Browse files Browse the repository at this point in the history
  • Loading branch information
YikaJ committed Mar 17, 2022
1 parent db4db79 commit 781d0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export default mixins(getConfigReceiverMixins<InputInstance, InputConfig>('input
},
emitFocus(e: FocusEvent) {
this.inputValue = this.value;
if (this.tDisabled || this.readonly) return;
if (this.tDisabled) return;
this.focused = true;
emitEvent<Parameters<TdInputProps['onFocus']>>(this, 'focus', this.value, { e });
},
Expand Down

0 comments on commit 781d0ad

Please sign in to comment.