• Resolved bundbko

    (@bundbko)


    Ver. 4.1.9

    there is no “if else” for “discard_content”
    Therefore i have a script error in wordpress admin page. It disturb my custom scripts.
    Please fix it please as soon as possible with this code.
    if(document.getElementById(‘discard_content’)){ document.getElementById(‘discard_content’).classList.remove(‘discard_button_outside_settings’) document.getElementById(‘discard_content’).classList.add(‘discard_button’)
    } else {
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • @bundbko, thankyou for contacting us.

    We will track this and make changes in upcoming release.

    Hello

    I have this error too on “/wp-admin/options-general.php”

    Uncaught TypeError: document.getElementById(...) is null

    setTimeout(()=>{
    document.getElementById("discard_content").classList.add("discard_button_outside_settings")
    document.getElementById("discard_content").classList.remove("discard_button")
    if( document.getElementById("user-consent-form") ){

    This code comes from plugin google-sitemap-generator.

    • This reply was modified 1 year, 11 months ago by Cyrille37. Reason: did no see that I was in google-sitemap-generator support forum :-)

    Hi @cyrille37, thankyou for contacting us

    We will track this issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘JS Error by ID “discard_content”’ is closed to new replies.