Skip to content

Commit

Permalink
fix: mobile keyboard opening all the time when selecting something in…
Browse files Browse the repository at this point in the history
… the editor on a touch device
  • Loading branch information
josdejong committed Aug 29, 2022
1 parent 92e87c4 commit c2a0937
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/lib/components/modals/popup/AbsolutePopupEntry.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@
>
{#if refRootPopup}
<div class="jse-absolute-popup-content" style={calculateStyle(refRootPopup, popup.options)}>
<input bind:this={refHiddenInput} class="jse-hidden-input" />
<input
type="text"
readonly="readonly"
tabindex="-1"
class="jse-hidden-input"
bind:this={refHiddenInput}
/>
<svelte:component this={popup.component} {...popup.props} />
</div>
{/if}
Expand Down
4 changes: 3 additions & 1 deletion src/lib/components/modes/treemode/TreeMode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2231,8 +2231,10 @@
{#if !isSSR}
<label class="jse-hidden-input-label">
<input
class="jse-hidden-input"
type="text"
readonly="readonly"
tabindex="-1"
class="jse-hidden-input"
bind:this={refHiddenInput}
on:paste={handlePaste}
/>
Expand Down

0 comments on commit c2a0937

Please sign in to comment.