I have a MenuBar to filer a grid, the menubar has a NumberField, however seems the field loses focus when I click on it to insert the value. I even tried keep Open.
I can confirm this using the web component. The reason is the fact that clicking a field causes item-selected event (which probably should be prevented in this case). Using keepOpen doesn’t help because in that case, the overlay content is re-rendered.
You can create an issue in the web components repository and we will discuss it. However, please note that in general, using fields in the MenuBar items isn’t considered a supported use case (same applies to e.g. placing fields in ListBox and Tabs).