gitbook icon indicating copy to clipboard operation
gitbook copied to clipboard

Integration button elements do not work.

Open stephenjcollins opened this issue 9 months ago • 2 comments

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

stephenjcollins avatar May 06 '24 19:05 stephenjcollins

https://github.com/GitbookIO/gitbook/blob/main/packages/react-contentkit/src/ElementButton.tsx#L22

stephenjcollins avatar May 07 '24 03:05 stephenjcollins

Hlleo

Eloutmanixx avatar May 13 '24 21:05 Eloutmanixx