Skip to content

Svelte 5: svelte:element with its this set to input or textarea doesn't call their actions #11075

Closed
@HighFunctioningSociopathSH

Description

Describe the bug

following this issue (#10993), actions also do not work on a svelte:element with its this set to input or textarea.

Reproduction

// +page.svelte

<svelte:options runes />

<script lang="ts">
  function action(node: HTMLInputElement) { 
    console.log('hello');
  }
</script>

<svelte:element this="input" use:action></svelte:element>

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-12650H
    Memory: 6.69 GB / 15.63 GB
  Binaries:
    Node: 18.14.2 - C:\Program Files\nodejs\node.EXE
    npm: 9.7.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.81)
    Internet Explorer: 11.0.22621.1
  Svelte version: ^5.0.0-next.94

Severity

blocking an upgrade

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions