Is this a Bug?

When i am Creating mask in the frame where there is no other layers then it won’t create a mask group

So when i try to add new layer in the particular frame it automatically get into the mask to avoid this we can create the masking as group manually or we need to have exisiting layer in the frame before creating masking like this

In this frame before creating a mask there is a text layer so when i created a mask figma automatically created mask group like this
Screenshot 2023-05-26 120553

Hi @Balaji21 would you mind reporting this to the support team directly via this form for help: https://help.figma.com/hc/en-us/requests/new

Be sure to use your Figma account email, include a link to your effected file, and share it with support-share@figma.com so they can take a closer look.