Skip to content

Commit

Permalink
use optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
LrxGaelle committed Dec 12, 2023
1 parent bb2019a commit bd524a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ export default {
},
methods: {
focus() {
this.$refs.input && this.$refs.input.focus();
this.$refs.input?.focus();
},
blur() {
this.$refs.input && this.$refs.input.blur();
this.$refs.input?.blur();
},
},
};
Expand Down

0 comments on commit bd524a2

Please sign in to comment.