Select to view content in your preferred language

FeatureFormViewModel submit event unexpectedly emitted on map click

69
0
2 weeks ago
AnastasiiaD
New Contributor

Hi,

I use Editor widget on the map, and watch "submit" event on its FeatureFormViewModel to write custom behaviour.

editor.viewModel.featureFormViewModel.on(
      'submit',
      (state) => {
        // custom code
      }
    );

 

But also I ran into a case when I click on the map outside of  the Editor widget the same "submit" event gets emitted and callback gets called. 

Does anyone aware what could cause the FeatureFormViewModel's submit event to be triggered beside click on submit button on the form? Or how to avoid such behaviour?  

0 Kudos
0 Replies