mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
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:
parent
0644c10bfe
commit
5f78bbebe9
|
@ -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 "";
|
||||
|
|
Loading…
Reference in New Issue
Block a user