Browse Source

fix: Add missing name attribute for <slot> (#2494)

Fix #2493
igor 1 year ago
parent
commit
ae95e74b80
1 changed files with 3 additions and 1 deletions
  1. 3 1
      packages/html/src/elements.rs

+ 3 - 1
packages/html/src/elements.rs

@@ -1600,7 +1600,9 @@ builder_constructors! {
     /// Build a
     /// [`<slot>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot)
     /// element.
-    slot None {};
+    slot None {
+        name: String DEFAULT,
+    };
 
     /// Build a
     /// [`<template>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template)