1
0
mirror of synced 2025-03-10 14:46:10 +03:00

If a named style can't be determined, return null

Previously this would return `style` if it couldn't be resolved and
the `style` attribute on the element is set for some reason. Now it
will return `null`, because it tried to resolve the width but was
not able to. This will allow it to fall back to `element` by default,
or not set the width at all.

This closes https://github.com/select2/select2/issues/2935.
This commit is contained in:
Kevin Brown 2015-01-17 21:42:11 -05:00
parent f427451853
commit 2f4cc19cd9
7 changed files with 12 additions and 2 deletions

View File

@ -4045,6 +4045,8 @@ define('select2/core',[
return matches[1];
}
}
return null;
}
return method;

View File

@ -4045,6 +4045,8 @@ define('select2/core',[
return matches[1];
}
}
return null;
}
return method;

View File

@ -13580,6 +13580,8 @@ define('select2/core',[
return matches[1];
}
}
return null;
}
return method;

File diff suppressed because one or more lines are too long

2
dist/js/select2.js vendored
View File

@ -4473,6 +4473,8 @@ define('select2/core',[
return matches[1];
}
}
return null;
}
return method;

File diff suppressed because one or more lines are too long

View File

@ -151,6 +151,8 @@ define([
return matches[1];
}
}
return null;
}
return method;