It's a bug. When it happens, dismiss your pet. That brings the normal hotbar 1 back. You can resummon your pet then.

I put it in bugs, and SE moved it to accepted bugs, plus some other people reported the same problem in other situations, which also got put in accepted bugs.

Hopefully it will be fixed soon.