Replies: 3 comments 11 replies
-
They have the same tab_id. ui.label(ui.context.client.tab_id) |
Beta Was this translation helpful? Give feedback.
2 replies
-
This seems to be a browser issue (or feature?). Reproduction:
I tested with Chrome and Firefox. In both cases "test" is "42" in the new tab. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I tried to use def open_link(target: Union[Callable[..., Any], str, Element] = '#', new_tab: bool = False):
aa = ui.link(text='_____', target=target, new_tab=new_tab)
# aa.set_visibility(False)
aa.run_method('click')
# aa.delete()
return None But:
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
It was wonderful to add
app.storage.tab
, it solved and simplified a lot of issues for me, thanks.But I faced one issue which I couldn't round around till now!
if a page (in a tab) generates new pages (in new tabs) using
ui.navigate.to('/test_tab', new_tab=True)
orui.open('/test_tab', new_tab=True)
then all the tabs (the generator and the generated tabs) are using the same tab-storage.Whereas if I manually opened a new tab and directed it to 'http://localhost:8080/test_tab' it will take a separate tab-storage (as expected) but also it shares this storage with the generated tabs from it!
You can use this code to check the problem:
or this generalized code also:
Is there something I missed?
Beta Was this translation helpful? Give feedback.
All reactions