mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-15 03:34:03 +00:00
e49103061e
When dwelling back to a link, previously a new LINK_DWELL action would be sent and the reducer would reset the interaction as if it was a new one. This shouldn't happen, since dwelling back to the active link (from the preview, for example) is not a new interaction, and should not create a new interaction or hide and show the preview. With this change, the preview reducer has the notion of new or repeat interactions, and only resets state on new ones, and only sets isUserDwelling when dwelling on a the link of the current interaction. Also when the interaction is repeat, we guard on the action creator and don't trigger the wait or the fetch request. Change-Id: I71cde81cbfe50b6f955e562e7e5b57d0f920fdb9 |
||
---|---|---|
.. | ||
ext.popups | ||
ext.popups.core.test.js | ||
ext.popups.desktopRenderer.test.js | ||
ext.popups.renderer.article.test.js | ||
ext.popups.schemaPopups.utils.test.js |