Commit 02ce871
committed
Merge MentionDropdown position watchers
The separate visible watcher installed autoUpdate, and the combined
watcher ran updatePosition() directly -- so opening the dropdown
computed the position twice (once eagerly, once via autoUpdate's
initial callback). Collapse into one watcher that just installs and
tears down autoUpdate; its initial callback covers the first layout.1 parent fc6e132 commit 02ce871
1 file changed
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 193 | | |
| 194 | + | |
| 195 | + | |
203 | 196 | | |
204 | | - | |
| 197 | + | |
205 | 198 | | |
206 | 199 | | |
207 | 200 | | |
| |||
0 commit comments