chanan / BlazorStrap

Bootstrap 4 Components for Blazor Framework

Home Page:https://blazorstrap.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent Default/Stop Enter from Submitting

kalshair opened this issue · comments

Hello,

Is there a way to prevent the 'Enter' key from submitting forms when using the "BSForm" component and/or the "BSInput" component? If not, is there a possible way to add this? Perhaps an attribute on the BSForm component or the BSInput component for DefaultBehavior, PreventDefaultBehavior, or EnterSubmits?

I figured out how to use the base HTML onkeypress event to prevent enter-keys from registering as submit behaviors.