Rattlyy opened a new issue, #36132:
URL: https://github.com/apache/superset/issues/36132

   ### Bug description
   
   Repro steps: 
   1. Generate a permalink key by clicking on anchor btn on a tab
   2. Embed a dashboard using the sdk 
   ```
   supersetEmbeddedSdk.embedDashboard({
           id: EMBED_DASHBOARD_ID,
           supersetDomain: "http://ip";,
           mountPoint: document.getElementById("cont"), // any html element 
that can contain an iframe
           fetchGuestToken: () => fetchGuestTokenFromBackend(),
           dashboardUiConfig: {
             // dashboard UI config: hideTitle, hideTab, hideChartControls, 
filters.visible, filters.expanded (optional), urlParams (optional)
             hideTitle: false,
             hideTab: false,
             hideChartControls: false,
             filters: {
               visible: true,
               expanded: true,
             },
             urlParams: {
               permalink_key: "KEY GOES HERE",
             },
           },
           iframeSandboxExtras: [
             "allow-top-navigation",
             "allow-popups-to-escape-sandbox",
           ],
         });
   ```
   
   Expected behaviour: Tab gets selected, dashboard content switches to that 
tab.
   Actual behaviour: Tab gets selected but you always get the content of the 
1st dashboard.
   Possible regression caused by #31194
   
   ### Screenshots/recordings
   
   ```
   {
       "activeTabs": [
           "TAB-code"
       ],
       "anchor": "TAB-code",
       "urlParams": []
   }
   ```
   content of permalink request, as you can see tab code and anchor is there
   also I tried in 4.0.0 where the anchor-element with id as the TAB id is 
there but to
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   {
       "activeTabs": [
           "TAB-Bpy2E5tgu"
       ],
       "anchor": "TAB-Bpy2E5tgu",
       "urlParams": []
   }
   
   this is the content of the permalink request, as you can see activeTabs gets 
applied but not anchor.
   I also tried 4.0.0 where the PR wasn't merged yet and the anchor element 
with tab id was still there but still same behaviour was there.
   No stacktrace no console logs.
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to