Don't focus on text field in mobile view when tapping the progress
This commit is contained in:
parent
d782a7dc48
commit
dc6f30dd94
|
@ -77,6 +77,9 @@ export default Ember.View.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
_focusWhenOpened: function() {
|
_focusWhenOpened: function() {
|
||||||
|
// Don't focus on mobile
|
||||||
|
if (Discourse.Mobile.mobileView) { return; }
|
||||||
|
|
||||||
if (this.get('controller.expanded')) {
|
if (this.get('controller.expanded')) {
|
||||||
var self = this;
|
var self = this;
|
||||||
Em.run.schedule('afterRender', function() {
|
Em.run.schedule('afterRender', function() {
|
||||||
|
|
Loading…
Reference in New Issue