fix liveview events

This commit is contained in:
Evan Almloff committed 2023-10-12 10:21:29 -05:00
1 parent f20b740abe
commit 1a4741ce04
4 files changed
+11 -8

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
const config = new InterpreterConfig(false);
function main() {
let root = window.document.getElementById("main");
if (root != null) {
+2 -2
View File
@@ -248,7 +248,7 @@ pub async fn run(mut vdom: VirtualDom, ws: impl LiveViewSocket) -> Result<(), Li
}
fn add_template(
template: &Template,
template: &Template<'static>,
channel: &mut Channel,
templates: &mut FxHashMap<String, u16>,
max_template_count: &mut u16,
@@ -262,7 +262,7 @@ fn add_template(
*max_template_count += 1
}
fn create_template_node(channel: &mut Channel, v: &TemplateNode) {
fn create_template_node(channel: &mut Channel, v: &'static TemplateNode<'static>) {
use TemplateNode::*;
match v {
Element {