Automattic / custom-metadata

A WordPress plugin that provides an easy way to add custom fields to your object types (post, pages, custom post types, users)
https://wordpress.org/plugins/custom-metadata/
193 stars 46 forks source link

Fix type=button selector by wrapping it in square brackets. #132

Closed johnwatkins0 closed 1 year ago

johnwatkins0 commented 6 years ago

This fixes an issue where new inputs added to multiple fields are given the value of the last existing input.

Prior to this fix, when a new input is added, the JS console shows:

Error: Syntax error, unrecognized expression: type="button"

Wrapping the type="button" selector in square brackets fixes the issue. I also removed the quotes around "button" for consistency with another [type=button] selector elsewhere in the file.