Previous/Next code error

I’m setting the arrows up on my dynamic item page, but I’m getting an error on some of the pasted code and see no instructions to optimize (the “disable” and “enable” code). Can anyone help?

Is the #next a button? What does the console say when you run the page?

Thanks for responding, Andreas. It is not a button, its two basic arrow shapes that I renamed “previous” and “next.” When I load it it says “Loading the code for the Library (URL name) page. To debug this code, open uhoa3.js in Developer Tools.TypeError: $w(…).disable is not a function”

Andreas - can you help?

Shape components don’t have a disable or enable methods. You can see the list of available methods here: https://www.wix.com/code/reference/$w.VectorImage.html

What you could do in order to “disable” it is to set the link property to an empty string.

Ohad thanks for your reply. I tried a workaround (not exactly a code master) - I put the basic arrow shapes inside buttons, thinking that they would have the enable/disable methods but still getting the enable/disable errors…

This is probably very basic, but how would I set the link property to an empty string?