My current setup involves a svelte app in which:
- Clicking a button labeled "Show" triggers the display of an input text box and a save button by setting a show variable to true.
- Upon clicking the "Save" button, a function is called that changes the show variable back to false.
After running some tests, I noticed that clicking "Show" also seems to activate the on:click event of "Save." I checked Google and found suggestions to add stopPropagation to resolve this issue, but that didn't work for me. Can anyone provide any insight into what mistake I might be making?
If you want to take a look at the code, you can find it here: