Commit b23d995
committed
address review: restore focusEvent dedupe in WithPopoverMenu
The class-component version tracked the native click event that just
triggered focus via the container's onClick so the document-level
listener (registered once focused) could skip it. Without this, the
same click bubbles to document after a re-render has detached its
event.target, causing shouldFocus to return false and immediately
undoing the focus. Preserve that behavior via focusEventRef.1 parent ac478cd commit b23d995
1 file changed
Lines changed: 13 additions & 0 deletions
File tree
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
133 | 139 | | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
138 | 144 | | |
139 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
140 | 152 | | |
141 | 153 | | |
142 | 154 | | |
| |||
146 | 158 | | |
147 | 159 | | |
148 | 160 | | |
| 161 | + | |
149 | 162 | | |
150 | 163 | | |
151 | 164 | | |
| |||
0 commit comments