Commit 2f4cc19
committed
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 select2#2935.1 parent f427451 commit 2f4cc19
7 files changed
Lines changed: 12 additions & 2 deletions
File tree
- dist/js
- src/js/select2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4045 | 4045 | | |
4046 | 4046 | | |
4047 | 4047 | | |
| 4048 | + | |
| 4049 | + | |
4048 | 4050 | | |
4049 | 4051 | | |
4050 | 4052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4045 | 4045 | | |
4046 | 4046 | | |
4047 | 4047 | | |
| 4048 | + | |
| 4049 | + | |
4048 | 4050 | | |
4049 | 4051 | | |
4050 | 4052 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13580 | 13580 | | |
13581 | 13581 | | |
13582 | 13582 | | |
| 13583 | + | |
| 13584 | + | |
13583 | 13585 | | |
13584 | 13586 | | |
13585 | 13587 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4473 | 4473 | | |
4474 | 4474 | | |
4475 | 4475 | | |
| 4476 | + | |
| 4477 | + | |
4476 | 4478 | | |
4477 | 4479 | | |
4478 | 4480 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
0 commit comments