Skip to content

Commit

Permalink
Syntactic Sugar
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Mar 7, 2021
1 parent be5c228 commit c4f726b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/components/Composer.js
Expand Up @@ -268,7 +268,7 @@ export default class Composer extends Component {
// On safari fixed position doesn't properly work on mobile,
// So we use absolute and set the top value.
// https://github.com/flarum/core/issues/2652
this.$().css('top', $('.App.mobile-safari').length ? $(window).scrollTop() : 0);
this.$().css('top', $('.App').is('.mobile-safari') ? $(window).scrollTop() : 0);
this.showBackdrop();
}
}
Expand Down

0 comments on commit c4f726b

Please sign in to comment.