fix liveview events
This commit is contained in:
1 parent
f20b740abe
commit
1a4741ce04
4 files changed
+11
-8
No files matched your search
@@ -1,3 +1,5 @@
|
||||
const config = new InterpreterConfig(false);
|
||||
|
||||
function main() {
|
||||
let root = window.document.getElementById("main");
|
||||
if (root != null) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user