File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,6 +200,16 @@ function initializeExportTabs() {
200200 document . querySelectorAll ( 'input[name="preset"]' ) . forEach ( ( radio ) => {
201201 radio . checked = false
202202 } )
203+ // Reset all option fields to their HTML defaults
204+ document
205+ . querySelectorAll ( '[name^="option_"]' )
206+ . forEach ( ( field ) => {
207+ if ( field . type === 'checkbox' ) {
208+ field . checked = field . defaultChecked
209+ } else {
210+ field . value = field . defaultValue
211+ }
212+ } )
203213 }
204214 } )
205215 } )
Original file line number Diff line number Diff line change @@ -200,6 +200,16 @@ function initializeExportTabs() {
200200 document . querySelectorAll ( 'input[name="preset"]' ) . forEach ( ( radio ) => {
201201 radio . checked = false
202202 } )
203+ // Reset all option fields to their HTML defaults
204+ document
205+ . querySelectorAll ( '[name^="option_"]' )
206+ . forEach ( ( field ) => {
207+ if ( field . type === 'checkbox' ) {
208+ field . checked = field . defaultChecked
209+ } else {
210+ field . value = field . defaultValue
211+ }
212+ } )
203213 }
204214 } )
205215 } )
You can’t perform that action at this time.
0 commit comments