Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to prevent scroll to top when calling forge/bridge method view.close() or view.sumbit() ?

cindy chen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 9, 2025

hello!

I'm using forge/react to create a macro + config application,
but when i submit the config form using forge/bridge method view.close() or view.sumbit(),
always trigger window scroll to top.

how can I prevent scroll to top when calling forge/bridge method view.close() or view.sumbit() ?

thank you so much!

 

package version:

"@forge/bridge": "^4.5.0",
"@forge/react": "10.10.3",
"@forge/resolver": "1.6.5-next.0",

1 answer

1 accepted

0 votes
Answer accepted
cindy chen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 13, 2025

instead of follow this tutorial

I found this one also work and solve my problem!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events