owldesign / QARR

Grow your business by allowing visitors to leave reviews or ask a questions.
https://qarr.tools
Other
6 stars 5 forks source link

Multiple Modals When Clicking "Review" or "Ask Question" Buttons #11

Closed 23d1 closed 5 years ago

23d1 commented 5 years ago

There seems to be multiple modals generated and added on top of each other when clicking the buttons to reveal modals ("Review" and "Ask Question"), sometimes two identical elements, sometimes more.

This also seems to break the modals submissions and inputs (for example, the stars don't change when clicking and then moving the mouse off, and submitting redirects back to the same url, but doesn't submit anything to be moderated).

The previous instance most likely needs to be destroyed/removed from the DOM when navigating through history, or clicking into other products and so forth.

23d1 commented 5 years ago

With the new functionality in terms of being able to customize forms and templates, would it be straight forward to simply render all instances server-side, and then ajaxify however one sees fit on the frontend? That would be an ideal way to not have to stick to JQuery, and also being able to fully customize the experience.

Edit: Should have properly read the docs first, before this comment. It seems that would be doable—going to look into it this weekend and report if I find anything.

23d1 commented 5 years ago

Seems to be working great so far as I'm testing. Will create two more feature requests.