Skip to content
Snippets Groups Projects
Commit aedd22ca authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Prevent auto focus of new message input in mobile devices

parent a74cf88c
No related merge requests found
......@@ -31,9 +31,10 @@ FlowRouter.route '/room/:_id',
Meteor.call 'readMessages', params._id if Meteor.userId()?
# KonchatNotification.removeRoomNotification(params._id)
setTimeout ->
$('.message-form .input-message').focus()
, 100
if Meteor.Device.isDesktop()
setTimeout ->
$('.message-form .input-message').focus()
, 100
triggersExit: [
->
......
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