Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bubbles reply issues #67

Closed
tahir80 opened this issue Oct 2, 2019 · 6 comments · Fixed by #73
Closed

Bubbles reply issues #67

tahir80 opened this issue Oct 2, 2019 · 6 comments · Fixed by #73
Labels

Comments

@tahir80
Copy link

tahir80 commented Oct 2, 2019

Bug or feature request?

Let me know what type of issue this is.
When I click between the bubbles (somewhere at the top space between the two bubbles, then all bubbles disappears and chatbot can't move forward.

If it's a bug, please provide the full method to reproduce.

How did you end up seeing the bug? What steps did you take to see it?

Please see the image below, you can test it yourself
Capture

@dmitrizzle dmitrizzle added the bug label Oct 2, 2019
@dmitrizzle
Copy link
Owner

Hmm that's odd. Do you see any errors in browser console?

@tahir80
Copy link
Author

tahir80 commented Jan 5, 2020 via email

@tahir80
Copy link
Author

tahir80 commented Jan 14, 2020

Hi Dmitrizzle/Chat-Bubble,

I did not see anything in the console when the bubbles disappear.

with kind regards,
Tahir

@ernesck
Copy link
Contributor

ernesck commented Feb 24, 2020

Same issue here.

@dmitrizzle
Copy link
Owner

The issue seems to be this function that's evoked once the user clicks the container .bubble. This function cleans up all the answer bubbles. It is meant to be fired at the same time as the onclick event of the actual bubble spans (constructed here).

So essentially, there are two different function called, one when the user click the bubble, and one when the user clicks the container span for the bubble. Normally, this happens at the same time, as the event propagate down the DOM tree. However, when you click in the area show in the screenshot above, you are only calling one of those functions, the one attached to the container.

The solution is to refactor this logic to have the containers' function called on the answer bubbles and not have to rely on even propagation.

I currently don't have bandwidth to make this change but I am open to PRs.

@ernesck
Copy link
Contributor

ernesck commented Mar 9, 2020

Fixed the issue by checking if the user clicked on a button or not. Created a pull request too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants