Bug? onAfterSelect triggers after show() on datatable row in cell

Please see http://webix.com/snippet/625ba41e and click on a row in the list. The row will be selected, and the detail view will nicely animate into place.

Now edit the code and change the view from list to datatable. Click on a row again. Notice how the detail cell switches in place of the datatable, and only then is the row selected.

The selection in the datatable is more complex and renders a bit slower than in the list, so technically it’s not a bug.

onSelectChange is more suitable event for such use-case, as it fires after the rendering:

http://webix.com/snippet/c1b244ad

For onAfterSelect, it’s possible to wrap the webix.delay around the show().