Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Changing options does not automatically reload #78

Open
GELELOIC opened this issue Apr 14, 2021 · 0 comments
Open

Changing options does not automatically reload #78

GELELOIC opened this issue Apr 14, 2021 · 0 comments

Comments

@GELELOIC
Copy link

GELELOIC commented Apr 14, 2021

Hello,

I just noticed a problem with the management of reactive options from nuxt.

It seems we can't reactively change options without having to reload the page.

<btn append class="homepage__map-container__btn-zoom" type="info" @click="changeScroll">

<client-only>
    <l-map :zoom="5" :center="[55.9464418,8.1277591]" :options="{scrollWheelZoom: scrollWheelZoom}>
       <l-tile-layer url="http://{s}.tile.osm.org/{z}/{x}/{y}.png"></l-tile-layer>
       <l-marker :lat-lng="[55.9464418,8.1277591]"></l-marker>
    </l-map>
</client-only>

data: function () {
    return {
       scrollWheelZoom: true
    }
},
methods:{
   changeScroll : async function () {
       this.scrollWheelZoom = false;
   },
}

However the change is done well in the vue console, but it has no effect ...

Thank you for your help!

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

No branches or pull requests

1 participant