FIX: forces a reload of emoji list if clicked on more (#7473)

This is a bit hacky but it's much more simple and reliable than many other solutions and doesnt involve having to manage some variable state.
This commit is contained in:
Joffrey JAFFEUX 2019-05-03 16:11:03 +02:00 committed by GitHub
parent 0644c10bfe
commit 5f78bbebe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -435,7 +435,14 @@ export default Ember.Component.extend({
const filterInput = document.querySelector(
".emoji-picker input[name='filter']"
);
if (filterInput) filterInput.value = v.term;
if (filterInput) {
filterInput.value = v.term;
Ember.run.later(
() => filterInput.dispatchEvent(new Event("input")),
50
);
}
});
return "";