Skip to content

Add ability to bind html input element with a variable #196

Closed
@gufoscuro

Description

Hello!
Would it make sense to add the ability to bind the input element with a variable which can be passed to the wrapper?
something like:

<TextInput bind:value={inputValue} bind:htmlInput={inputField} />

so you could do things like

inputField.focus()

I know that refs suck, but unfortunately sometimes you are forced to do something imperatively...

Thanks!

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