AnsweredAssumed Answered

After updating from 4.7 to 4.8 popup.watch('visible') stopped to work properly.

Question asked by denis.pokotylyuk@geodata.no_Geodata on Jul 23, 2018

Hi,

I updated js api from 4.7 to 4.8 and discovered that mapView.popup.watch('visible', () => { ... }); stopped to work correctly. 

 

In 4.7 I could run following code and get correct action buttons:

this.props.mapView.popup.watch('visible', () => {
     console.log('popup: ', that.props.mapView.popup.actions);
     this.handleActionTitle();
});

 

Now in 4.8 the same code returns always "Go to" button only, event if it does not exist in the activated popup.

 

A bug in 4.8?

Outcomes