-
Notifications
You must be signed in to change notification settings - Fork 55
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
Sometimes remove(close) button is not working #116
Comments
I have same problem. Please fix it. |
@starrybleu could you provide your browser version? I tested it again and I didn't happen to me. |
@ctxhou Hi, the version of my browser(Chrome) is Thank you for trying to help me out. |
I've also used Chrome. If you met the same bug next time, could you paste the error message in the console? It would be easier for the community to find the bug : ) |
Any update on this? I guess this is related with stylesheet(css) that I’m not good at. |
sometimes I have to press too many times to close the tab. what i did is implement my own close button inside the tab. |
@starrybleu If this error message only happened in the demo page, I think the chances are the race condition when using react setState. react-tabtab/docs/components/Complicated.js Lines 38 to 49 in c682e91
Based on your situation, you click the tab quickly, the race condition would happen. I will push and fix this demo bug. @kapilpipaliya So your problem is solved by implement your own close button? |
Thank you for digging this problem. I found that closing action would happen when click close button quickly as you mentioned. Now, what I need is to implement debounce on click the close button before it turns out draggable context. Thanks. |
My own close button solved the problem. |
sometimes close button still not working on demo too. |
If I long press the close button, its not working, because close button goes down. |
It seems that there's no choice any other than my own close button now. I'll try to make my own button. Thank you, @kapilpipaliya. |
@kapilpipaliya My front-end co-developer made a workaround as below. componentDidUpdate() {
[...document.getElementsByClassName('react-contextmenu-wrapper')].forEach((element) => {
element.nextElementSibling.onmousedown = (e) => e.stopPropagation()
})
} |
I had this problem too. I fixed it by doing this: DragTabList:
SortMethod:
|
Hello,
I have tested remove(close) buttons on your demo site,
https://ctxhou.github.io/react-tabtab/#add-close
.When I intentionally clicked remove buttons in tabs again and again, sometimes nothing happened.
That's it. Is there a possibility to fix it ?
The text was updated successfully, but these errors were encountered: