Commit 4c0282f 1 parent d9ed9f4 commit 4c0282f Copy full SHA for 4c0282f
File tree 3 files changed +24
-0
lines changed
src/js/settings/components
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,10 @@ export const SaveSettingsButton = ( {
201
201
) ;
202
202
setSettings ( res . settings ) ;
203
203
setIsSaving ( false ) ;
204
+ window . scrollTo ( {
205
+ top : 0 ,
206
+ behavior : 'smooth' ,
207
+ } ) ;
204
208
return ;
205
209
}
206
210
@@ -226,6 +230,10 @@ export const SaveSettingsButton = ( {
226
230
}
227
231
) ;
228
232
setIsSaving ( false ) ;
233
+ window . scrollTo ( {
234
+ top : 0 ,
235
+ behavior : 'smooth' ,
236
+ } ) ;
229
237
} ) ;
230
238
} ;
231
239
Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ export const SaveSettingsButton = ( {
83
83
} ) ;
84
84
setSettings ( res . settings ) ;
85
85
setIsSaving ( false ) ;
86
+ window . scrollTo ( {
87
+ top : 0 ,
88
+ behavior : 'smooth' ,
89
+ } ) ;
86
90
return ;
87
91
}
88
92
onSaveSuccess ( ) ;
@@ -107,6 +111,10 @@ export const SaveSettingsButton = ( {
107
111
}
108
112
) ;
109
113
setIsSaving ( false ) ;
114
+ window . scrollTo ( {
115
+ top : 0 ,
116
+ behavior : 'smooth' ,
117
+ } ) ;
110
118
} ) ;
111
119
} ;
112
120
Original file line number Diff line number Diff line change @@ -113,6 +113,10 @@ export const ServiceSettings = () => {
113
113
} ) ;
114
114
} ) ;
115
115
setIsSaving ( false ) ;
116
+ window . scrollTo ( {
117
+ top : 0 ,
118
+ behavior : 'smooth' ,
119
+ } ) ;
116
120
return ;
117
121
}
118
122
@@ -138,6 +142,10 @@ export const ServiceSettings = () => {
138
142
}
139
143
) ;
140
144
setIsSaving ( false ) ;
145
+ window . scrollTo ( {
146
+ top : 0 ,
147
+ behavior : 'smooth' ,
148
+ } ) ;
141
149
} ) ;
142
150
} ;
143
151
You can’t perform that action at this time.
0 commit comments