Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: <span> cannot be a child of <option> (#6023)
# Motivation Fix warning which becomes an error with Svelte v5 tooling (PR #6020). ``` /Users/daviddalbusco/projects/dfinity/nns-dapp/frontend/src/lib/components/accounts/SelectNetworkDropdown.svelte 62:6 error `<span>` cannot be a child of `<option>`. `<option>` only allows these children: `<#text>`. The browser will 'repair' the HTML (by moving, removing, or inserting elements) which breaks Svelte's assumptions about the structure of your components. https://svelte.dev/e/node_invalid_placement(node_invalid_placement) svelte/valid-compile ``` # Changes - Remove `span` in `option`. Signed-off-by: David Dal Busco <[email protected]>
- Loading branch information