Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnSubmit does not fire #220

Closed
endeffects opened this issue Oct 5, 2019 · 1 comment
Closed

OnSubmit does not fire #220

endeffects opened this issue Oct 5, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@endeffects
Copy link

endeffects commented Oct 5, 2019

I changed my form submit button from onclick to form onsubmit, but the provided delegate is not called, also the custom validation get's not triggered:

<BSBasicForm UserValidation="true" @onsubmit="@(async () => await this.Move(this.State.Request))">
    <h3>Move</h3>
    <PositionView Position="@this.State.Request.Position" State="@this.State" />
    <BSFormGroup>
        <BSButton ButtonType="ButtonType.Submit" class="w-100">Move</BSButton>
    </BSFormGroup>
</BSBasicForm>

I saw that you do not add the required Attribute for the Basic Form

Formbuilder.AddAttribute(5, "OnSubmit", OnSubmit);

@jbomhold3 jbomhold3 added the enhancement New feature or request label Oct 7, 2019
@jbomhold3 jbomhold3 added this to the 1.0.105 milestone Oct 8, 2019
@jbomhold3 jbomhold3 self-assigned this Oct 8, 2019
@jbomhold3
Copy link
Collaborator

Added in 1.0.105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants