When right-clicking scaffolding at build limit it just disappears and leaves floating scaffolding around it. I am using optifine, but I tested it in base game and it was a problem in the base game too. I don't know what more to say so here is a video: (The video is recorded on OptiFine, but the bug is also in vanilla Minecraft)
Update: I attached another video showcasing the bug in base game.
Linked issues
Attachments
Comments

Thank you for your report!
We're actually already tracking this issue at MC-143167, so we will resolve and link this ticket as a Duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Please do not mark unreleased versions as affected.
You don't have access to them yet.