mirror of
https://github.com/wekan/wekan.git
synced 2026-02-12 19:24:20 +01:00
Fix card infinite scrolling on card activities
I imagine blaze-component changed their Mixins API since I written this code. We need some tests to avoid this kind of regressions when updating dependencies! Fixes #420
This commit is contained in:
parent
8c01d51577
commit
46747b01fb
3 changed files with 8 additions and 11 deletions
|
|
@ -8,8 +8,11 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
|
||||
calculateNextPeak() {
|
||||
const altitude = this.find('.js-card-details').scrollHeight;
|
||||
this.callFirstWith(this, 'setNextPeak', altitude);
|
||||
const cardElement = this.find('.js-card-details');
|
||||
if (cardElement) {
|
||||
const altitude = cardElement.scrollHeight;
|
||||
this.callFirstWith(this, 'setNextPeak', altitude);
|
||||
}
|
||||
},
|
||||
|
||||
reachNextPeak() {
|
||||
|
|
@ -21,6 +24,7 @@ BlazeComponent.extendComponent({
|
|||
this.isLoaded = new ReactiveVar(false);
|
||||
this.parentComponent().showOverlay.set(true);
|
||||
this.parentComponent().mouseHasEnterCardDetails = false;
|
||||
this.calculateNextPeak();
|
||||
},
|
||||
|
||||
scrollParentContainer() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue