• Resolved Daniel Iser

    (@danieliser)


    Have tried hooking everything from the click on the individual a.iris-palette to irischange event.

    My function to update needed previews does not fire when a user clicks the palette colors even though the input value changes and the color wheel changes to the correct color. My preview remains unchanged.

    For instance starting color is black. If i use the drag-able color picker preview seems to update fine. But if i click yellow in the palette the color picker updates to show yellow and the input has a new color code, but the preview doesn’t change.

    If i then either click yellow a second time or another palette color, yellow is then displayed in my preview properly. Even though blue is now the color value of the color picker itself.

    Clicking a third palette will result in the blue being shown on the preview. It seems the events are fired one click behind.

    Any ideas. You can see this issue in action by downloading my plugin Easy Modal and going to the theme editor. You will see that you can change color in the preview properly using anything but the palettes. Click one palette and nothing will happen, click a second and the first will display.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Color Picker pallete clicks dont' trigger change event til second click.’ is closed to new replies.