Skip to content

Commit 21c9632

Browse files
committed
Improve operation when built with svelte-standalone
1 parent 778bfc4 commit 21c9632

File tree

4 files changed

+77
-8
lines changed

4 files changed

+77
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "livematrix-client",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"license": "MIT",
55
"scripts": {
66
"standalone": "pnpm exec standalone build",
@@ -51,7 +51,7 @@
5151
"sass-embedded": "^1.89.2",
5252
"svelte": "^5.0.0",
5353
"svelte-check": "^4.0.0",
54-
"svelte-standalone": "^2.1.1",
54+
"svelte-standalone": "2.3.1-beta",
5555
"typescript": "^5.0.0",
5656
"typescript-eslint": "^8.20.0",
5757
"vite": "^7.0.4",

pnpm-lock.yaml

Lines changed: 70 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/Chatbox/Session.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@
7676
The form submission is handled by the on:submit event on the <form> element.
7777
-->
7878
<div class="chat-sessionform">
79-
<form onsubmit={handleSessionRequest}>
79+
<form onsubmit={((event) => {
80+
event.preventDefault();
81+
handleSessionRequest;
82+
})}>
8083
<fieldset disabled={isLoading}>
8184
<legend>Start a new chat</legend>
8285
<p>Please fill in your details to begin.</p>

src/routes/+page.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
import App from "$lib/App.svelte";
33
</script>
44

5+
<App />

0 commit comments

Comments
 (0)