1
0
mirror of synced 2025-02-03 21:59:24 +03:00

Fixed responsive example in documentation

This fixes the documentation so the responsive example actually works.
Everything was working properly, the example just wasn't updated when
the default for the width was changed to `100%` in
5fd72d2052.
This is a change from the old `resolve` width setting, which is
responsible for parsing the style attribute and getting the width that
was set.

This closes https://github.com/select2/select2/issues/4050
This commit is contained in:
Kevin Brown 2016-01-03 18:57:49 -05:00
parent f3b9693ad9
commit 63d531a9c0

View File

@ -201,7 +201,9 @@ slug: examples
$(".js-example-disabled").select2();
$(".js-example-disabled-multi").select2();
$(".js-example-responsive").select2();
$(".js-example-responsive").select2({
width: 'resolve' // need to override the changed default
});
$disabledResults.select2();