diff --git a/src/lib/UI/GUI/TextAreaInput.svelte b/src/lib/UI/GUI/TextAreaInput.svelte index e26f6a99..ee4a460a 100644 --- a/src/lib/UI/GUI/TextAreaInput.svelte +++ b/src/lib/UI/GUI/TextAreaInput.svelte @@ -67,44 +67,29 @@ } }} > - {:else if isFirefox} -
{ - handleKeyDown(e) - onInput() - }} - oninput={(e) => { - autoComplete() - }} - onpaste={(e) => { - e.preventDefault() - const text = e.clipboardData.getData('text/plain') - if(text){ - insertTextAtSelection(text) - } - }} - bind:this={inputDom} - translate="no" - >{value ?? ''}
- {:else} -
{ - handleKeyDown(e) - onInput() - }} - oninput={(e) => { - autoComplete() - }} - bind:this={inputDom} - translate="no" - >{value ?? ''}
- {/if} +{:else} +
{ + handleKeyDown(e) + onInput() + }} + oninput={(e) => { + autoComplete() + }} + onpaste={(e) => { + e.preventDefault() + const text = e.clipboardData.getData('text/plain') + if(text){ + insertTextAtSelection(text) + } + }} + bind:this={inputDom} + translate="no" + >{value ?? ''}
+{/if}