mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
Fix all type errors in design system (#3956)
* 📘 Fix type errors in design system * 🔥 Remove unneeded `?` * 🔧 Add design system to Vetur * 📘 Improve typing of `$el` * ♻️ Address feedback * 📘 Type leftover `MouseEvent` * 📘 Type `event.target` properly
This commit is contained in:
@@ -112,21 +112,21 @@ export default Vue.extend({
|
||||
},
|
||||
methods: {
|
||||
focus() {
|
||||
const input = this.$refs.innerSelect;
|
||||
if (input) {
|
||||
input.focus();
|
||||
const select = this.$refs.innerSelect as Vue & HTMLElement | undefined;
|
||||
if (select) {
|
||||
select.focus();
|
||||
}
|
||||
},
|
||||
blur() {
|
||||
const input = this.$refs.innerSelect;
|
||||
if (input) {
|
||||
input.blur();
|
||||
const select = this.$refs.innerSelect as Vue & HTMLElement | undefined;
|
||||
if (select) {
|
||||
select.blur();
|
||||
}
|
||||
},
|
||||
focusOnInput() {
|
||||
const select = (this.$refs.innerSelect) as (Vue | undefined);
|
||||
const select = this.$refs.innerSelect as Vue & HTMLElement | undefined;
|
||||
if (select) {
|
||||
const input = select.$refs.input;
|
||||
const input = select.$refs.input as Vue & HTMLElement | undefined;
|
||||
if (input) {
|
||||
input.focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user