Skip to content

Commit 98af957

Browse files
authored
Merge pull request #18187 from craftcms/bugfix/18179-element-index-actions-menu-position
remove the window resize listener when hiding custom select
2 parents d53281c + 756d4a4 commit 98af957

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Fixed a bug where all plugin settings were being saved to the project config, rather than just posted settings. ([craftcms/commerce#4006](https://github.com/craftcms/commerce/issues/4006))
6+
- Fixed a bug where custom selects could be positioned incorrectly after the window was resized. ([#18179](https://github.com/craftcms/cms/issues/18179))
67

78
## 4.16.17 - 2025-12-0421
89

src/web/assets/garnish/dist/garnish.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/web/assets/garnish/dist/garnish.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/web/assets/garnish/src/CustomSelect.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ export default Base.extend(
263263

264264
Garnish.uiLayerManager.removeLayer(this.$container);
265265
this.removeListener(Garnish.$scrollContainer, 'scroll');
266+
this.removeListener(Garnish.$win, 'resize');
266267
this.visible = false;
267268
this.trigger('hide');
268269
},

0 commit comments

Comments
 (0)