Composite component style issue if required=true

Hi all,
I’ve created a composite component closely following the instructions in documentation example https://docs.jmix.io/1.x/jmix/1.7/ui/custom-components/composite-components.html
everything works fine except when i try to declare the component in a form as required:
Screenshot_2025-07-10_17-16-26
In this image i declared two fields as required for comparison: the first one (normal textfield) looks fine, but the second one (the composite component) has two red asterisk and both in the wrong place

Any ideas on how to fix the layout or get the required indicator to display properly?

thank you in advance