Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Reactivity not working within an IonModal component

$
0
0

I am encountering an issue where reactivity is not working within a custom Vue component that wraps an IonModal. Changing a boolean variable doesn’t cause a reactive update to the contents of the modal even though you can see the variable changing in a console.log.

I am wondering if I am doing something wrong, if it’s not suppose to work within an IonModal or if this is a weird bug.

Here is a starter project replicating the issue with both the Options API and the Composition API along with code without a modal that works as expected.

If you open the console and click the Toggle button, you’ll see showText is changing but the contents in the modal is not.

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>