Mishig
commited on
Commit
•
4ade85f
1
Parent(s):
8833b5b
[Login Modal] Fix not showing properly on mobile (#796)
Browse files
src/lib/components/chat/ChatInput.svelte
CHANGED
@@ -53,7 +53,7 @@
|
|
53 |
on:keydown={handleKeydown}
|
54 |
on:compositionstart={() => (isCompositionOn = true)}
|
55 |
on:compositionend={() => (isCompositionOn = false)}
|
56 |
-
on:
|
57 |
{placeholder}
|
58 |
/>
|
59 |
</div>
|
|
|
53 |
on:keydown={handleKeydown}
|
54 |
on:compositionstart={() => (isCompositionOn = true)}
|
55 |
on:compositionend={() => (isCompositionOn = false)}
|
56 |
+
on:beforeinput
|
57 |
{placeholder}
|
58 |
/>
|
59 |
</div>
|
src/lib/components/chat/ChatWindow.svelte
CHANGED
@@ -212,7 +212,7 @@
|
|
212 |
placeholder="Ask anything"
|
213 |
bind:value={message}
|
214 |
on:submit={handleSubmit}
|
215 |
-
on:
|
216 |
if ($page.data.loginRequired) {
|
217 |
ev.preventDefault();
|
218 |
loginModalOpen = true;
|
|
|
212 |
placeholder="Ask anything"
|
213 |
bind:value={message}
|
214 |
on:submit={handleSubmit}
|
215 |
+
on:beforeinput={(ev) => {
|
216 |
if ($page.data.loginRequired) {
|
217 |
ev.preventDefault();
|
218 |
loginModalOpen = true;
|