Shared-Reality-Lab / IMAGE-browser

IMAGE project browser extensions & client-side code
Other
2 stars 0 forks source link

fix: fix image popup trigger #364

Closed jaydeepsingh25 closed 1 year ago

jaydeepsingh25 commented 1 year ago

resolves https://github.com/Shared-Reality-Lab/IMAGE-browser/issues/360. This was a common issue for all the webpages where HTML form contains a graphic. By default, when we add buttons for every graphic, they have a default behavior of submit. Hence, pressing Enter triggers IMAGE popup. Fix for this includes overriding type to "button" for the buttons added by the extension.