sinanbozkus / FormHelper

ASP.NET Core - Transform server-side validations to client-side without writing any javascript code. (Compatible with Fluent Validation)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

beforeSubmit throws error if handler uses "object.method()" format

jakenuts opened this issue · comments

Version:FormHelper 4.0.1

I have been able to receive callbacks to a function defined within a named closure (?) but the same format does not seem to work for asp-beforeSubmit. I noticed in the source that the callback happens through a callFunction() method which splits the callback name and retrieves it one part at a time. The beforeSubmit code though just calls windowoptions.beforeSubmit which fails with "window[options.beforeSubmit] is not a function".

Thanks!

James

Sorry, I couldn't see your message. I will work on this as soon as possible.