fabiocaccamo / django-colorfield

:art: color field for django models with a nice color-picker in the admin.
MIT License
632 stars 95 forks source link

Background color of the first field does not change #63

Closed mhowarth10 closed 4 years ago

mhowarth10 commented 4 years ago

Python version 3.6

Django version 3.0.5

Package version 0.3.2

Current behavior (bug description) I have 4 color fields. The first one does not change color when I move the slider, but the rest of them do.

Code:

class Test(models.Model):
  test1 = ColorField('Baggrundsfarve', max_length = 7, blank = True)
  test2 = ColorField('Temafarve 1', max_length = 7, blank = True)
  test3 = ColorField('Temafarve 2', max_length = 7, blank = True)
  test4 = ColorField('Tekstfarve', max_length = 7, blank = True, default = '#FFFFFF')

Expected behavior Color fields should change background colors when the slider is moved.

fabiocaccamo commented 4 years ago

I quickly tested it on an existing project I'm working on (python 3.8 and django 3.1) and I can't replicate this issue. Could you:

fabiocaccamo commented 4 years ago

Your model field declaration is the same for all 4 color fields?

mhowarth10 commented 4 years ago

Sorry, this is my fault. I had the slider on the right handside all the way down to the dark colors.

It works as intended.

Thanks for getting back so quickly.