Join Discord
Powered by
Ready to Save popup when Copying Text
# help-with-umbraco
t
Tani <3
11/26/2024, 2:46 PM
I have a function that copies text to the clipboard, the function works fine but everytime I press the button a "Ready to Save?" pop-up appears. Why?
https://cdn.discordapp.com/attachments/1310979902744301630/1310979902903681077/image.png?ex=674730ad&is=6745df2d&hm=ac5d211b8bb6313b4f9a4c1d3e225d56238e4c712d9c361d8d47dc5cc28f74ba&
https://cdn.discordapp.com/attachments/1310979902744301630/1310979903532957736/image.png?ex=674730ad&is=6745df2d&hm=f9d9a000a0341eedc9755c30309af38dfbcbe8cc9072a8db1978f8795926e5aa&
https://cdn.discordapp.com/attachments/1310979902744301630/1310979903776231464/image.png?ex=674730ad&is=6745df2d&hm=33e53c67c3884520d530af92d97c227e402d8159d04b5aa88e3864c9d594f7ee&
d
D_Inventor
11/26/2024, 3:46 PM
Your button likely triggers the submission of the form. You'll want to give your button an attribute
type="button"
t
Tani <3
11/26/2024, 8:12 PM
Ah right thanks, temporarily fixed it by having icon be the copy button, that works fine right now but this will definitely help in the future
3
Views
Previous
Next