Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: slot property seems undefined when referred in select elements scope #6692

Closed
CatchABus opened this issue Aug 29, 2021 · 1 comment
Closed

Comments

@CatchABus
Copy link

CatchABus commented Aug 29, 2021

Describe the bug

If I refer to a parent's slot property inside a select element with a binding value, an undefined error for slot property will be thrown if selected option is changed by user.
This doesn't have any effects on functionality but it still throws an error that fills console on every selection change.

Reproduction

https://svelte.dev/repl/fe9ca7db7ce140d3ade4a3e7b53d7b94?version=3.42.4
Select a new option and check console output.

Logs

Error:
message: "type is not defined"
stack: ReferenceError: type is not defined
at HTMLSelectElement.select_change_handler (eval at handle_message (about:srcdoc:13:8), <anonymous>:778:23)

System Info

System:
    OS: Linux 5.11 Debian GNU/Linux 10 (buster) 10 (buster)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 1.52 GB / 7.46 GB
    Container: Yes
    Shell: 5.0.3 - /bin/bash
  Binaries:
    Node: 16.7.0 - ~/.n/bin/node
    npm: 7.20.3 - ~/.n/bin/npm
  npmPackages:
    svelte: ^3.41.0 => 3.42.1 
    webpack: ^5.16.0 => 5.50.0

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants