gitbook
gitbook copied to clipboard
Integration button elements do not work.
Bug description
There is a difference in loader styles between the edit and published views for button components. This is causing most users to experience "panic clicking" resulting a 500 back from GitBook if the button is clicked twice in a row. There may be two issues here. Firstly, the button component does not render a loader and lock out the button from being clicked twice. The second, a server side issue with CloudFlare causing a 500 to result when two requests a simultaneously being processed.
How to reproduce
https://github.com/GitbookIO/gitbook/assets/156371756/720cb11a-157d-434c-8995-67e327499b81
https://github.com/GitbookIO/gitbook/blob/main/packages/react-contentkit/src/ElementButton.tsx#L22
Hlleo