vtimofeev / vue-check-view

ISC License
115 stars 20 forks source link

vue-check-view does not trigger if height of div is 0 #14

Open igorbuts opened 3 years ago

igorbuts commented 3 years ago

Version:

"vue-check-view": "^0.3.0"

Steps to reproduce:

  1. Render the code below in your component:
    
    <template>
    <div v-view.once="onceHandler" class="wrapper">
    <div v-if="data" class="content">
    </div>
    </div>
    </template>

:x: **Actual result:**
 vue-check-view does not trigger: classes in the dom are not updated and  `onceHandler` is not called.

 :white_check_mark: **Expected result:**
vue-check-view is triggering.

---
if I try this workaround:

it starts working. But IMO it should work without this workaround even when the target div height is 0.