Closed sabetAI closed 2 years ago
I'm using the following modifier to update the tippy instance's state:
modifiers: [ { name: "setMaxWidth", phase: "write", enabled: true, fn: ({ state, instance }) => { console.log(state); const refWidth = state.rects.reference.width; state.rects.popper.width = refWidth; return state; }, }, ],
What am I doing wrong?
You're looking for the sameWidth modifier https://codesandbox.io/s/bitter-sky-pe3z9?file=/src/index.js
sameWidth
I'm using the following modifier to update the tippy instance's state:
What am I doing wrong?