I did find an old post where someone faced a similar issue, however they were able to solve it by doing as you suggested above by clicking outside the design panel and going back after adding a custom class whereas for me, this only seems to work only after I’ve added 2 custom classes:
Perhaps it might be able to provide a bit of help