Skip to content

Commit

Permalink
In vue 3, we no longer need .$el
Browse files Browse the repository at this point in the history
  • Loading branch information
sandbergja committed Feb 8, 2024
1 parent ae5c307 commit 8af7100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/components/travelEstimateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export default {
});
this.$nextTick(() => {
const index = this.expenseData.length - 1;
const input = this.$refs.expense_type[index].$el;
const input = this.$refs.expense_type[index];
if (typeof input.children[1] !== 'undefined'){
input.children[1].focus();
}
Expand Down

0 comments on commit 8af7100

Please sign in to comment.