The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/ui/client/components/selectDropdown.js

23 lines
493 B

import { ReactiveVar } from 'meteor/reactive-var';
import { Template } from 'meteor/templating';
Template.selectDropdown.events({
'focus input'(e, i) {
i.open.set(true);
console.log('asdasd');
}, 'blur input'(e, i) {
setTimeout(() => {
i.open.set(false);
}, 100);
console.log('asdasd');
},
});
Template.selectDropdown.helpers({
open() {
return Template.instance().open.get();
},
});
Template.selectDropdown.onCreated(function() {
this.open = new ReactiveVar(false);
});