({ state }: ModifierArguments<Record<string, never>>)
| 18 | phase: "beforeWrite" as const, |
| 19 | requires: ["maxSize"], |
| 20 | fn({ state }: ModifierArguments<Record<string, never>>) { |
| 21 | const { width, height } = state.modifiersData.maxSize; |
| 22 | |
| 23 | state.styles.popper = { |
| 24 | ...state.styles.popper, |
| 25 | maxWidth: `${width}px`, |
| 26 | maxHeight: `${height}px`, |
| 27 | }; |
| 28 | }, |
| 29 | }; |
| 30 | |
| 31 | /** |
no outgoing calls
no test coverage detected