arthur-feral / emogeez

MIT License
4 stars 1 forks source link

#13 - Use one popup for all togglers for perfs #14

Closed arthur-feral closed 6 years ago

arthur-feral commented 6 years ago

Render only one popup for all toggler for performances.

In case your application (as Flowdock or Slack etc...) has many inputs and many places to use an emoji popup, it may be really bad to render one popup by toggler (it will create X * 1800 dom nodes). So in this PR, i render the popup only if there is a toggler used at least once.