Moved game components into a new folder, working proof of concept hair customisation

This commit is contained in:
2024-11-23 16:47:41 +01:00
parent ee3e1b55cb
commit ab97e27f27
11 changed files with 68 additions and 29 deletions

View File

@ -37,11 +37,11 @@ const chats = ref([] as Chat[])
const chatWindow = ref<HTMLElement | null>(null)
const chatInput = ref<HTMLElement | null>(null)
onClickOutside(chatInput, event => unfocusChat(event, chatInput.value as HTMLElement))
onClickOutside(chatInput, (event) => unfocusChat(event, chatInput.value as HTMLElement))
function unfocusChat(event: Event, targetElement: HTMLElement) {
if (!(event.target instanceof Node) || !targetElement.contains(event.target)) {
targetElement.blur();
targetElement.blur()
}
}