Skip to content
Snippets Groups Projects
Commit 47521ca2 authored by Gabriel Engel's avatar Gabriel Engel Committed by GitHub
Browse files

Merge pull request #7105 from RocketChat/fix-firefox-edit

[FIX] edit button on firefox
parents 62fd8318 5a789a4e
No related branches found
No related tags found
No related merge requests found
......@@ -108,11 +108,17 @@ Template.channelSettings.events({
t.saveSetting();
}
},
'click [data-edit]'(e, t) {
'click [data-edit], click .button.edit'(e, t) {
e.preventDefault();
if ($(e.currentTarget).data('edit')) {
t.editing.set($(e.currentTarget).data('edit'));
return setTimeout((function() {
let input = $(e.currentTarget);
if (input.hasClass('button')) {
input = $(e.currentTarget).siblings('.current-setting');
}
if (input.data('edit')) {
t.editing.set(input.data('edit'));
setTimeout((function() {
return t.$('input.editing').focus().select();
}), 100);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment