nextcloud-vue icon indicating copy to clipboard operation
nextcloud-vue copied to clipboard

NcInputField should be submitted when using the Enter key

Open GVodyanov opened this issue 1 year ago • 1 comments

Due to using the @trailing-button-click to submit the input, hitting the Enter key doesn't do anything, as it should in my opinion.

Also, due to the custom event, using min-length doesn't work, and you have to check whether there are any characters inputted in the triggered method.

Somewhat relevant to https://github.com/nextcloud/contacts/pull/4039

GVodyanov avatar Jul 18 '24 10:07 GVodyanov

submit is an event of a form element, not an input element. So using Enter for submitting is a form's feature.

trailing-button-click doesn't always mean "submit". It might be "clear", for example.

If we want to add an ability to submit by trailing button, we may add a way to provide nativeType to NcButton of the trailing button. Then we can use submit natively.

ShGKme avatar Jul 18 '24 11:07 ShGKme

Closing. Feel free to reopen if still actual or there are new thoughts

ShGKme avatar Nov 14 '24 23:11 ShGKme