Form editor throws a client error when using DeferredScriptFile() #8113
Labels
Bug
C: Form
FP: Unplanned
Sync status with associated Feedback Item
S: Wrappers (ASP.NET Core)
S: Wrappers (ASP.NET MVC)
SEV: Medium
Bug report
When deferring the component scripts to a file and a specified item of a Form HtmlHelper has a defined editor through the Editor() configuration, a client-side error is thrown:
"Uncaught Error: Syntax error, unrecognized expression: #"
Reproduction of the problem
Enable the global deferred initialization.
Define a Form HtmlHelper with a ComboBox editor for one of its items:
When using the TagHelper version of the Form, the ComboBox initialization script is included in the kendo-deferred-scripts-xxxxx.js file before the initialization script of the Form with a unique generated "id" for example "3451ce77-2736-437f-9584-f5a5255902c2". In this case, no client-side errors occur.
Expected/desired behavior
When deferring the component scripts to a file, the Form with specified editors must be initialized as expected without client-side errors.
Workaround
Use the TagHelper version of the Form or define the editor by using the EditorTemplateView() option:
Environment
The text was updated successfully, but these errors were encountered: