mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 22:58:11 +08:00
Remove usage of 'null' in favor of 'undefined'
This commit is contained in:
@@ -84,8 +84,8 @@ export default defineComponent({
|
||||
},
|
||||
mounted() {
|
||||
// Focus the first button in the popup
|
||||
const element = this.$el as Element | null;
|
||||
const emphasizedOrFirstButton = (element?.querySelector("[data-emphasized]") as HTMLButtonElement | null) || element?.querySelector("[data-text-button]");
|
||||
const element = this.$el as Element | undefined;
|
||||
const emphasizedOrFirstButton = (element?.querySelector("[data-emphasized]") || element?.querySelector("[data-text-button]") || undefined) as HTMLButtonElement | undefined;
|
||||
emphasizedOrFirstButton?.focus();
|
||||
},
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user