(expand = state.expand)
| 59 | } |
| 60 | |
| 61 | const drop = (expand = state.expand) => { |
| 62 | if (expand) return |
| 63 | if (ref?.matches(":hover")) return |
| 64 | if (inside()) return |
| 65 | setState("block", false) |
| 66 | } |
| 67 | |
| 68 | const sync = () => { |
| 69 | const expand = !!ref?.querySelector('[aria-expanded="true"], [data-expanded]') |