Skip to content

Refresh handle position when text input is changed via jquery #68

@enventa

Description

@enventa

Hi there!

I am using WP Customizer to allow users configure my plugin. There are two color settings I would like to "sync", so changing the color from "color 1" makes "color 2" setting have the same value.

To achieve a full "sync", it is needed to achieve 3 things: update input value, button color and handle position.

So far, I have been able to make "color 2" have the same value and "button color" than "color 1" (with jQuery)... but I'm not able to make the iris handle to position where it should be. See screenshot below.

Anyone could tell how to force the handle to update its position accordingly to the inputted value?

image

Many thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions