Skip to content

Commit f4b6816

Browse files
committed
feat: change CImageLazy active mechanism
1 parent 54c8243 commit f4b6816

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/Image/CImage.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export default {
5555
},
5656
computed: {
5757
isActive () {
58-
return true
58+
//active prop is present in CImageLazy component, here always undefined
59+
return this.active !== false
5960
},
6061
alignClass () {
6162
if (this.align === 'left') {

src/components/Image/CImageLazy.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ export default {
3535
this.removeListener()
3636
},
3737
computed: {
38-
isActive () {
39-
return this.active
40-
},
4138
animationClasses () {
4239
if (this.fade) {
4340
return { 'c-opacity-0' : !this.animated }

0 commit comments

Comments
 (0)