Deprecation: #101912 - Passing jQuery objects to FormEngine validation
See forge#101912
Description
Both methods,
validate
and
mark
accept a form
field as argument that is either of type
HTMLInput
,
HTMLSelect
,
HTMLTextarea
, or
j
.
Passing all of the aforementioned types is supported since TYPO3 v11, therefore,
passing a jQuery object has been deprecated.
Impact
Calling any method,
validate
or
mark
with
passing jQuery-based objects will render a warning in the browser console, along
with a stacktrace to help identifying the caller code.
Affected installations
All third-party extensions using the deprecated methods of the
@typo3/
module are affected.
Migration
Do not pass jQuery-based objects into the deprecated methods. Consider migrating
away from jQuery at all, or use
$field.
as interim solution.