Skip to content

NuGet version uses andSelf instead of addBack #63

@sergeydgr8

Description

@sergeydgr8

Refer to: jquery-validation/jquery-validation#1997

The method andSelf was deprecated back in version 1.8 of jQuery and instead used as an alias for addBack. This plugin uses andSelf in parse() of the unobtrusive version of the validator. It works fine in older versions in jQuery, however, beginning jQuery 3.0, andSelf is removed completely: https://api.jquery.com/andSelf/

The fix for this is just to replace andSelf with addBack in the parse function. The validator then works as it should under jQuery 3.

It seems like this repo doesn't have the issue. However, the version that is hosted on NuGet does have it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions