Skip to content
Extraits de code Groupes Projets
Valider c3559d18 rédigé par Eugen Rochko's avatar Eugen Rochko
Parcourir les fichiers

Do not modify scroll position unless content has been added to the top, not bottom

parent 4a6cc46e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -46,7 +46,7 @@ const StatusList = React.createClass({ ...@@ -46,7 +46,7 @@ const StatusList = React.createClass({
}, },
componentDidUpdate (prevProps) { componentDidUpdate (prevProps) {
if (prevProps.statusIds.size < this.props.statusIds.size && this._oldScrollPosition) { if (prevProps.statusIds.size < this.props.statusIds.size && prevProps.statusIds.first() !== this.props.statusIds.first() && this._oldScrollPosition) {
const node = ReactDOM.findDOMNode(this); const node = ReactDOM.findDOMNode(this);
if (node.scrollTop > 0) { if (node.scrollTop > 0) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter