FIX: A select-kit+modal regression (#22961)
Regressed in https://github.com/discourse/discourse/pull/22642 `inModal` var is `.modal-body` itself now, so the changing the modal height failed.
This commit is contained in:
parent
35ff57ba69
commit
999aaa35a7
|
@ -988,10 +988,9 @@ export default Component.extend(
|
|||
enabled: !!(inModal && this.site.mobileView),
|
||||
phase: "afterWrite",
|
||||
fn: ({ state }) => {
|
||||
const modalBody = inModal.querySelector(".modal-body");
|
||||
modalBody.style = "";
|
||||
modalBody.style.height =
|
||||
modalBody.clientHeight + state.rects.popper.height + "px";
|
||||
inModal.style = "";
|
||||
inModal.style.height =
|
||||
inModal.clientHeight + state.rects.popper.height + "px";
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue