Skip to content

Commit 63d531a

Browse files
committed
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 select2@5fd72d2. 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 select2#4050
1 parent f3b9693 commit 63d531a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/examples.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ <h1>
201201
$(".js-example-disabled").select2();
202202
$(".js-example-disabled-multi").select2();
203203

204-
$(".js-example-responsive").select2();
204+
$(".js-example-responsive").select2({
205+
width: 'resolve' // need to override the changed default
206+
});
205207

206208
$disabledResults.select2();
207209

0 commit comments

Comments
 (0)