You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
options is not defined
HTMLSelectElement.select_change_handler
[https://bhx905.csb.app/App.svelte:323:21]()
Doing some debug, the following code is generated:
let value = "";
const writable_props = [];
Object.keys($$props).forEach(key => {
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<App> was created with unknown prop '${key}'`);
});
function select_change_handler() {
value = (0, _internal.select_value)(this);
$$invalidate(0, value);
$$invalidate(2, options);
}
Note: options is not defined, since it is the property exposed by the <RemoteOptions> component
Describe the bug
When a
<select>
component contains a<CustomComponent let:options>
, when the user select an option, the following exception is thrown:Reproduction
https://codesandbox.io/s/practical-hooks-bhx905?file=/App.svelte
Main component
RemoteOptions component
Logs
Doing some debug, the following code is generated:
Note:
options
is not defined, since it is the property exposed by the<RemoteOptions>
componentSeverity
annoyance
The text was updated successfully, but these errors were encountered: