Skip to content
Snippets Groups Projects
Commit fc662fd2 authored by IMMACULATE X's avatar IMMACULATE X Committed by Jacob Rockowitz
Browse files

Issue #3314471 by immaculatexavier: webform.element.select2.js Remove this...

Issue #3314471 by immaculatexavier: webform.element.select2.js Remove this "!==" check; it will always be true
parent ab579fad
Branches
Tags
No related merge requests found
......@@ -79,7 +79,7 @@
// Remove required attribute from IE11 which breaks
// HTML5 clientside validation.
if (window.navigator.userAgent.indexOf('Trident/') !== false
if (window.navigator.userAgent.indexOf('Trident/') !== -1
&& $select.attr('multiple')
&& $select.attr('required')) {
$select.removeAttr('required');
......
......@@ -50,7 +50,7 @@
// Remove required attribute from IE11 which breaks
// HTML5 clientside validation.
// @see https://github.com/select2/select2/issues/5114
if (window.navigator.userAgent.indexOf('Trident/') !== false
if (window.navigator.userAgent.indexOf('Trident/') !== -1
&& $select.attr('multiple')
&& $select.attr('required')) {
$select.removeAttr('required');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment