10000 vue-check-view does not trigger if height of div is 0 · Issue #14 · vtimofeev/vue-check-view · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
igorbuts opened this issue Jul 10, 2021 · 0 comments
Open

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

igorbuts opened this issue Jul 10, 2021 · 0 comments

Comments

@igorbuts
Copy link

Version:

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

Steps to reproduce:

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

<script>
  export default {
    name: 'test-component',
    data() {
      return {
        data: undefined,
      }
    },
    methods: {
      onceHandler() {
        console.log('onceHandler')
      },
    },
  }
</script>

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

Expected result:
vue-check-view is triggering.


if I try this workaround:

<style lang="scss">
  .wrapper {
      min-height: 1px;
  }
</style>

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0