-
Notifications
You must be signed in to change notification settings - Fork 191
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
Make back button of browser close overlay pane in HTML tables #573
Conversation
benchexec/tablegenerator/react-table/src/components/SelectColumn.js
Outdated
Show resolved
Hide resolved
benchexec/tablegenerator/react-table/src/components/SelectColumn.js
Outdated
Show resolved
Hide resolved
benchexec/tablegenerator/react-table/src/components/SelectColumn.js
Outdated
Show resolved
Hide resolved
benchexec/tablegenerator/react-table/src/components/SelectColumn.js
Outdated
Show resolved
Hide resolved
benchexec/tablegenerator/react-table/src/components/SelectColumn.js
Outdated
Show resolved
Hide resolved
What do you mean with this? If you want to call this function you have to use a function call, of course. |
Hi @PhilippWendler, I changed my code, I deleted completely function Seems this solution fix the issue in a proper way. If you accept the fix I will implemented it in |
Thanks! Unfortunately it seems that the trick with going backward and then calling
|
I used And as an EventListener now I use
This solution is much more reliable. It fixes the "new tab" problem and also it doesn't reload the page when overlay is closed. |
This works nicely, indeed! The only thing that I found is that when closing an overlay manually (e.g., via the "X") and then pressing the "Back" button, nothing happens. One has to press the "Back" button again to use its proper functionality. Of course the reason for this is that there is still the pushed state in the history if the overlay is closed via some other mechanism. |
Hi @PhilippWendler, I added function
|
Thank you very much, seems to work nicely now! |
Hi @PhilippWendler,
I added two functions for back button:
event listener for back button
and the second function changes the url link of the browser's back button
My idea to fix this issue is to use
{this.props.close}
when back button is clicked, but unfortunately it is returning an errorExpected an assignment or function call and instead saw an expression no-unused-expressions