()
| 66 | } |
| 67 | |
| 68 | const sync = () => { |
| 69 | const expand = !!ref?.querySelector('[aria-expanded="true"], [data-expanded]') |
| 70 | setState("expand", expand) |
| 71 | if (expand) { |
| 72 | setState("block", true) |
| 73 | close() |
| 74 | return |
| 75 | } |
| 76 | drop(expand) |
| 77 | } |
| 78 | |
| 79 | const arm = () => { |
| 80 | setState("block", true) |