File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -271,8 +271,6 @@ function onCustomizeFooterTemplateChange(customizeFooterTemplate: boolean) {
271271 return
272272 }
273273
274- // When enabling customization, seed the template with the inherited default so the
275- // saved value is concrete and not dependent on future inherited-template resolution.
276274 const seedTemplate = value .value .footerTemplate || (props .inheritedTemplate ?? ' ' )
277275 updateValue ({ customizeFooterTemplate , footerTemplate: seedTemplate })
278276}
@@ -290,9 +288,6 @@ function onTemplateReset(event?: Event) {
290288 event ?.stopPropagation ()
291289 event ?.preventDefault ()
292290
293- // Reset to the concrete inherited template so the saved value is explicit and
294- // independent of future inherited-template resolution. Using '' (empty) as a
295- // sentinel would break when the inheritedTemplate changes between page loads.
296291 updateValue ({
297292 customizeFooterTemplate: true ,
298293 footerTemplate: props .inheritedTemplate ?? ' ' ,
You can’t perform that action at this time.
0 commit comments