Explorar o código

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

Fix #2493
igor hai 1 ano
pai
achega
ae95e74b80
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/html/src/elements.rs

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

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