diff --git a/src/Name.svelte b/src/Name.svelte
index 2e6c4f2..6b55495 100644
--- a/src/Name.svelte
+++ b/src/Name.svelte
@@ -54,16 +54,6 @@
}
}
- $: {
- if(ul) {
- if(names.length === 0 || (!has_focus && !has_mouse)) {
- ul.style.display = 'none'
- }else{
- ul.style.display = 'block'
- }
- }
- }
-
function select_by_click(e) {
let el = e.target
if(el.tagName == 'IMG') {
@@ -125,7 +115,7 @@
has_mouse=true} on:mouseleave={() => has_mouse=false}>
has_focus=true} on:blur={() => {has_focus=false;update_value()}} on:keydown={select_by_key}/>
-
+
{#each names as name, i (name)}
- {name[1]}
{/each}
@@ -142,7 +132,6 @@
margin: 0;
position: absolute;
left: 0;
- display: none;
background-color: white;
box-shadow: 0 0 4px var(--color-inactive);
clip-path: polygon(-100% 0, 200% 0, 200% 200%, -100% 200%);
@@ -185,4 +174,7 @@
height: calc(2.3em - 2px);
width: calc(2.3em - 2px);
}
+ .hidden {
+ display: none;
+ }