Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

EdsonOrdaz's avatar

make a variable false and wait

Hello, I have a button that activates a variable and this variable activates a component, the component is declared like this:

<Notas v-if="notasdialog"></Notas>

The button I have does the following:

        async notas(){
            this.notasdialog = await false;
            this.notasdialog =true;
        },

When running the function, the component opens perfectly, but if I close it and run the function again as the notasdialog variable is already true, the component no longer opens.

How can I make pressing the button always make the variable false so that I can then make it true and open the component?

greetings

0 likes
0 replies

Please or to participate in this conversation.