I unfortunately don't really have an answer but:
If it's a thing you've noticed on layouts, maybe you can get the layout code and look through it from there? Personally, I would dissect the code and delete parts of it until I find a line that actually affects the button. From there, you should just mess around to see what code does what.
If the creator of the layout code is active, you could try just messaging them about it, too!