Skip to content

Commit

Permalink
Merge pull request #12726 from craftcms/bugfix/12708-selector-modal-b…
Browse files Browse the repository at this point in the history
…ottom-padding

always update bottom padding on modal fade in
  • Loading branch information
brandonkelly authored Feb 24, 2023
2 parents 279a617 + affeba1 commit 5170d71
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Fixed a bug where control panel notifications weren’t being announced to screen readers. ([#12714](https://github.com/craftcms/cms/pull/12714))
- Fixed a bug where localized relations could be moved to a newly-added site rather than copied, when applying project config changes. ([#12702](https://github.com/craftcms/cms/issues/12702))
- Fixed a bug where element indexes’ “View” buttons could be inconsistently positioned in the toolbar.
- Fixed a bug where element selector modal footers could hide the modal contents. ([#12708](https://github.com/craftcms/cms/issues/12708))

## 4.3.10 - 2023-02-17

Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/web/assets/cp/dist/cp.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/web/assets/cp/src/js/BaseElementSelectorModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ Craft.BaseElementSelectorModal = Garnish.Modal.extend(
if (!this.elementIndex) {
this._createElementIndex();
} else {
// make sure we're able to scroll the entire elementIndex if more elements were added
// after modal was first initialised
this.updateModalBottomPadding();

// Auto-focus the Search box
if (!Garnish.isMobileBrowser(true)) {
this.elementIndex.$search.trigger('focus');
Expand Down

0 comments on commit 5170d71

Please sign in to comment.