mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
c35cdae491
refs https://github.com/TryGhost/Team/issues/1206 Clicking inside the emoji picker was causing focus to be lost which then deselected the card causing an annoying jump between rendered/edit mode whilst working on the card's content. A secondary issue was the picker sticking around after you intentionally clicked elsewhere in the document to leave edit mode. - before initiating the emoji-button instance, create a container that's appended at the bottom of the document body and that prevents any click events on elements inside the container from bubbling up and causing focus changes. Updated the emoji-button instance to render the picker inside that container - added a call to hide the picker any time the card leaves edit mode |
||
---|---|---|
.. | ||
addon | ||
app | ||
docs/specs | ||
public/icons/koenig | ||
index.js | ||
package.json |