From 359d87440bcfde0ef37887e72afd684b2a6a8d35 Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Fri, 24 Apr 2026 22:06:52 -0500 Subject: [PATCH] add oddbird polyfill - not quite working Not quite working yet. polyfill is loaded, but positioned elements are spanning whole viewport. Parking this for now. --- client/admin/main.jsx | 2 + client/components/Anchored.jsx | 15 ++++-- .../components/anchorPositioningPolyfill.js | 29 ++++++++++++ .../components/anchorPositioningPolyfill.less | 15 ++++++ client/components/dropdown/dropdown.jsx | 16 +++++-- client/homebrew/main.jsx | 2 + package-lock.json | 46 ++++++++++++++++++- package.json | 1 + 8 files changed, 117 insertions(+), 9 deletions(-) create mode 100644 client/components/anchorPositioningPolyfill.js create mode 100644 client/components/anchorPositioningPolyfill.less diff --git a/client/admin/main.jsx b/client/admin/main.jsx index a5b7c84ad..3726391ec 100644 --- a/client/admin/main.jsx +++ b/client/admin/main.jsx @@ -1,6 +1,8 @@ import { createRoot } from 'react-dom/client'; import Admin from './admin.jsx'; +import { bootstrapAnchorPositioningPolyfill } from '../components/anchorPositioningPolyfill.js'; const props = window.__INITIAL_PROPS__ || {}; createRoot(document.getElementById('reactRoot')).render(); +bootstrapAnchorPositioningPolyfill(); diff --git a/client/components/Anchored.jsx b/client/components/Anchored.jsx index 87af5a6e1..2e7189a16 100644 --- a/client/components/Anchored.jsx +++ b/client/components/Anchored.jsx @@ -71,10 +71,14 @@ const Anchored = ({ children })=>{ // forward ref for AnchoredTrigger const AnchoredTrigger = forwardRef(({ toggleVisibility, visible, children, className, ...props }, ref)=>(