Comments (6)
any updates? from 2016 to 2021...
from emoji-mart.
I fixed this issue on my forked repo: https://github.com/sayjeyhi/emoji-mart and opened this PR: #510, also it is published on: emoji-mart-virtualized
so you can use same API with:
yarn add emoji-mart-virtualized
from emoji-mart.
We could use react-virtualized
or react-window
for this, but a simpler option may be to just use IntersectionObserver to hide the categories (i.e. replace them with an empty <div></div>
sized to the right width/height) when the categories are invisible. This is what Mastodon does (mastodon/mastodon#3191) and it's a decent pseudo-virtual list implementation.
For a11y, we would also need to implement the feed role.
from emoji-mart.
Would like to suggest one more virtualization library to consider. It enables us to have dynamically sized items which can be tricky to implement in react-window/react-vitualized
https://github.com/petyosi/react-virtuoso
from emoji-mart.
I fixed this issue on my forked repo: https://github.com/sayjeyhi/emoji-mart and opened this PR: #510, also it is published on:
emoji-mart-virtualized
so you can use same API with:
yarn add emoji-mart-virtualized
Thank you for sharing this! Seems like a no brainer to do this and the performance improvement is instantly noticeable.
from emoji-mart.
Thanks, @jamesopti, It is completely fixed yeah, but the size issue still there, looking to have some free time to work on it
from emoji-mart.
Related Issues (20)
- Emoji listing does not load emojis when the em-emoji-picker element is moved
- Error
- Hiding search input HOT 3
- Emoji mart tries to download the emojis from the internet
- Adding HTML node in insertContent
- Serious Memory Leak when show/disappear <Picker> Component
- There are style issues in lower versions of Google Chrome(version69)
- When you slide the scroll bar very fast, the icon below cannot be rendered. HOT 6
- Emoji Mart Picker categories not responding to click events
- Browser.js styling
- "native" only printing correctly on Mac (not Windows or Linux) HOT 1
- Whole screen flickers on initial usage (from React) HOT 1
- Adding support to Swedish language
- React component throws React.forwardRef error HOT 1
- How can I add other utf8 characters as custom emojis?
- How to detect loading of Picker?
- Rerendered emoji fails to be inserted
- Question: Using twitter SVG
- Supporting multi skin tone handshakes
- What font is used? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emoji-mart.