Skip to content

Prevent null matches on widgets control change.#52

Merged
andrew-worsfold merged 1 commit intoEnclavely:masterfrom
ManUtopiK:Fix-widgets-controlChange
Oct 11, 2016
Merged

Prevent null matches on widgets control change.#52
andrew-worsfold merged 1 commit intoEnclavely:masterfrom
ManUtopiK:Fix-widgets-controlChange

Conversation

@ManUtopiK
Copy link
Contributor

Thanks for this cool new widgets feature!
I got some bugs when I change any input that throw an error on control change.
This is a quick fix but I'm not sure it's well integrated wuth all the process...

@andrew-worsfold
Copy link
Contributor

Do you have steps to reproduce the issue?

What sort of error is being thrown?

@ManUtopiK
Copy link
Contributor Author

I investigated a little bit more why I got this error:
Uncaught TypeError: Cannot read property '1' of null(anonymous function) @ sidebar.js?ver=1.6.0:4489

This is due to a conflict with the plugin "Custom sidebars" from the authors WPMU DEV:
https://wordpress.org/plugins/custom-sidebars/

@andrew-worsfold andrew-worsfold merged commit 8ee9bbd into Enclavely:master Oct 11, 2016
andrew-worsfold added a commit that referenced this pull request Oct 12, 2016
Improved - Reduced the amount of layout meta information saved to the post, the selector for element child containers can now be specified when registering the element.
Fixed - Live updates to Button do not target correct DOM node [GitHub #50](https://github.com/andrew-worsfold/tailor/issues/50), cannot add multiple custom class names to an element [GitHub PR #51](https://github.com/andrew-worsfold/tailor/pull/51), fields added to the widget form by third-party plugins are not handled correctly [GitHub PR #52](https://github.com/andrew-worsfold/tailor/pull/52).
ManUtopiK added a commit to ManUtopiK/tailor that referenced this pull request Oct 13, 2016
…to Fix-widgets-controlChange

* 'master' of https://github.com/andrew-worsfold/tailor:
  Tailor 1.6.2. Fixed - Copy history entry created when copying using the Copy button.
  Tailor 1.6.2. Added - "Copy" button to elements.
  Tailor 1.6.1. Improved - Reduced the amount of layout meta information saved to the post, the selector for element child containers can now be specified when registering the element. Fixed - Live updates to Button do not target correct DOM node [GitHub Enclavely#50](https://github.com/andrew-worsfold/tailor/issues/50), cannot add multiple custom class names to an element [GitHub PR Enclavely#51](https://github.com/andrew-worsfold/tailor/pull/51), fields added to the widget form by third-party plugins are not handled correctly [GitHub PR Enclavely#52](https://github.com/andrew-worsfold/tailor/pull/52).
  Prevent null matches. (Enclavely#52)
  Allow multiple class on attribute class name. Prevent multiple whitespace and whitespace and the end of string; (Enclavely#51)

# Conflicts:
#	assets/js/dist/sidebar.js
#	assets/js/src/sidebar/components/controls/widget-form.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments