biotope-element
biotope-element copied to clipboard
Props passed via attribute on to child components disappear after render
Describe the bug I try to add a component B into component A inside its template and pass a prop from component A to component B. The prop then is available inside component B's script, but after component B is rendered, the attribute is not set on the component tag anymore. Thus, any attribute-based styling won't work.
To Reproduce Steps to reproduce the behavior:
- See description
Expected behavior Props passed on as attributes from one component to another stay on the child's HTML tag.
Additional context Can be temporarily fixed by re-setting the attribute inside of the rendered hook of the child.