The first geometry I draw after selecting a layer in the layer view is not created. The shape is drawn on the screen but when another action is made, the shape disappears. Every subsequent geom drawn behaves normally.
If I select another layer, the same happens: first geom gives error, subsequent geoms work correctly. Similarly, if I click back to the original layer, the same issue occurs.
AcceptChangesBehaviour uses isCreatingNewFeature(handler)
The issue is that isCreatingNewFeature() Returns false when creating the first geom after selecting a layer (meaning that the EditManager still has an edit feature that hasn't been cleared).
If we put something like:
into a listener for the layers panel, it would solve the problem.