Skip to content

<mdui-text-field>: How to add new line on Enter keypress #403

@edemalm

Description

@edemalm

When pressing Enter in a text-field like this:

<mdui-text-field rows="2" type="text" autosize></mdui-text-field>

... the focus moves to the next input element. Is it possible to prevent this behavior and instead insert a newline to get another row, just like if you pressed Shit+Enter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions