-
Notifications
You must be signed in to change notification settings - Fork 111
fixes #57 - The offcanvas menu automatically closes when the input is clicked in mobile #68
base: master
Are you sure you want to change the base?
Conversation
…input is clicked in mobile
@@ -353,6 +353,8 @@ | |||
oc = new Offcanvas $(this) | |||
|
|||
$(window).on 'resize', -> | |||
if 'text' != $(document.activeElement).attr 'type' | |||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line contains inconsistent indentation. Expected 4 got 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm.. the next two lines feature two-space indentation, at least in my IDE (VS Code):
$('.navbar-offcanvas.in').each ->
$(@).height('').removeClass 'in'
@@ -353,6 +353,8 @@ | |||
oc = new Offcanvas $(this) | |||
|
|||
$(window).on 'resize', -> | |||
if 'text' != $(document.activeElement).attr 'type' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line contains inconsistent indentation. Expected 4 got 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are in CoffeeScript so we can just do
return if $(document.activeElement).attr('type') is 'text'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm totally fine with it
Not really sure how @houndci-bot didn't catch the others before, I think you can just safely ignore them 👍 |
@@ -353,6 +353,8 @@ | |||
oc = new Offcanvas $(this) | |||
|
|||
$(window).on 'resize', -> | |||
if 'text' != $(document.activeElement).attr 'type' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are in CoffeeScript so we can just do
return if $(document.activeElement).attr('type') is 'text'
Closes #57