mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:52:50 +08:00
UX: don't tether popper to the viewport if reference is out of the viewport (#17012)
followup to https://github.com/discourse/discourse/pull/16504 Internal `/t/64811` public `/t/228953`
This commit is contained in:
parent
370df7ccb4
commit
5109ea0cf1
|
@ -889,6 +889,8 @@ export default Component.extend(
|
|||
name: "preventOverflow",
|
||||
options: {
|
||||
altAxis: !this?.site?.mobileView,
|
||||
tetherOffset: ({ reference }) =>
|
||||
Math.max(reference.y, document.documentElement.scrollTop),
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user