[wp-trac] [WordPress Trac] #42127: Custom HTML widget can't be deleted with error in content
WordPress Trac
noreply at wordpress.org
Tue Oct 10 14:24:18 UTC 2017
#42127: Custom HTML widget can't be deleted with error in content
------------------------------------+--------------------
Reporter: joyously | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9
Component: Widgets | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+--------------------
Changes (by felipeelia):
* keywords: => has-patch dev-feedback
Comment:
If I understood correctly, the problem here is checking for form validity
even when it'll be deleted. It happens with Custom HTML Widget because it
uses
{{{
control.fields.content[0].setCustomValidity( message );
}}}
but any other widget with an input field with "required" attribute would
result in the same error.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42127#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list