We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59fa942 commit 1adacbdCopy full SHA for 1adacbd
nicegui/elements/aggrid/aggrid.py
@@ -245,6 +245,13 @@ async def get_client_data(
245
}
246
result = await self.client.run_javascript(f'''
247
const rowData = [];
248
+ if (getElement({self.id}) === undefined) {{
249
+ mounted_app.elements[{self.client.content.id}].children.push({self.id});
250
+ mounted_app.elements[{next(self.ancestors()).id}].children.pop({self.id});
251
+ await mounted_app.$nextTick();
252
+ mounted_app.elements[{self.client.content.id}].children.pop({self.id});
253
+ mounted_app.elements[{next(self.ancestors()).id}].children.push({self.id});
254
+ }}
255
getElement({self.id}).api.{API_METHODS[method]}(node => rowData.push(node.data));
256
return rowData;
257
''', timeout=timeout)
0 commit comments