ui.sidebar state does not return the collapsed property

I am using ui.sidebar and would like to run a function when its collapsed vs when its opened. I tried to use the $$(‘sidebar’).getState()[‘collapsed’] to get the state of the sidebar but my return object from getState() only has the following:

{open: Array(0), select: Array(0)}

Hello @kchhatani,

I am using ui.sidebar and would like to run a function when its collapsed vs when its opened. I tried to use the $$(‘sidebar’).getState()[‘collapsed’] to get the state of the sidebar but my return object from getState() only has the following

Could you please specify the version of the library you are using? The getState() method reflects the current collapsed status starting from Webix 6.2.