#42984 closed defect (bug) (invalid)
Widget Save button problem
| Reported by: | alexvorn2 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | 4.9 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Why on earth did you disabled Save button for widgets in widget.php page?
My problem is that I have a color picker input and after I select the color, the Save button is disabled and I can't save the widget! Please let's revert how it was before.
Yes it works after I change other inputs but for my choose color input it does not enable itself...
I uploaded a video on youtube so It will be clear for you - youtube.com/watch?v=iZwJIi6lk_0
Change History (6)
This ticket was mentioned in Slack in #core-customize by westonruter. View the logs.
9 years ago
#3
@
9 years ago
- Keywords needs-patch removed
- Milestone Awaiting Review
- Resolution → invalid
- Status new → closed
- Version trunk → 4.9
#4
@
9 years ago
I don't like this approach... I will try to add this action to color picker but what if I can't add?
Does color picked has an end action where I can attach this trigger function? I don't think so...
Should I make a new ticket about Color Picker or what should I do If your solution does not work?
#5
@
9 years ago
I took a look and It does not work as you say, If I change the color then this trigger change action will be called 100 + times - take a look in the video I uploaded to youtube if you don't believe me - youtube.com/watch?v=W9BI5t-riDA
We need to make the button clickable or to add a new callback action/function to Color Picker that will get executed/called at the end of selecting color.
I created a new ticket - https://core.trac.wordpress.org/ticket/43052 You can take a look.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
It's saved until the widget becomes dirty, until an input has a
changeevent happen on it. All you need to do istrigger('change')on the hidden input. Coincidentally this is also required for the widget to work in the Customizer.This is documented in https://make.wordpress.org/core/2017/10/24/widget-improvements-in-wordpress-4-9/ under §Widget Saved State on Admin Screen.