Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As coded in 4.3.0, the Javascript setColor function used on the color picker page is:
function setColor(val) {
document.forms[0].elements[0].value = val;
color = val;
}
Unfortunately this assumes that there's only one form on the page. If, as I do, there is a search box in a form at the top of the page built into the template (maybe a bad idea?), it incorrectly fills in that box with the color selected.
I wish I could give you the fix as well as the bug, but its been a couple of years. (Something about giving the form an ID or Name and then searching directly for that GetElementbyID maybe?).
thanks for this module!
Comments
Comment #1
mdupontThis issue is no longer relevant, as it applies to a very old version. Closing.