ankurk91 / vue-loading-overlay

Vue.js component for full screen loading indicator :cyclone:
https://ankurk91.github.io/vue-loading-overlay/
MIT License
1.25k stars 102 forks source link

Too much recursion error #96

Closed AniaKru95 closed 3 years ago

AniaKru95 commented 3 years ago

I'm submitting a ... (check one with "x")

[ x ] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ ] Other, please describe

Tell about your platform

Current behavior I use vue-loading-overlay as a component. And I use below code inside my two different components.

  1. I go to page where above two components are used.
  2. During the loading I go to another page (without these components)
  3. Then I get an error: "too much recursion" obraz

When I use below code only in one my component - everything works fine.

<template>
    <div class="vld-parent">
     <loading :active="isLoading"
               :color="'#3d4950'"
               :loader="'dots'"/>
    </div>
</template>
<script>
import Loading from 'vue-loading-overlay';
export default {
  name: "RankItem",
    components: {
        Loading
          },
     }
     </script>

Expected behavior When I go to another page during the loading I don't want to get error "too much recursion".

ankurk91 commented 3 years ago
<loading :active="isLoading"
               :color="'#3d4950'"
               :enforce-focus="false"
               :loader="'dots'"/>

Your example was incomplete, please provide a working example with your use-case on codesandbox

Can you to set enforce-focus to false ?

AniaKru95 commented 3 years ago

Setting "enforce-focus" to "false" - worked.

I really appreciate your help :)