[Vuejs]-Focus on first input with errors. Problem with this.$refs.array[0] 12 October 2023 by thecoderscamp.com 0👍 The answer is: this.$refs[invalidFields[0]].$el.focus(); [Vuejs]-Javascript – Remove dynamic attribute Source:stackexchange.com