Skip to content

Commit

Permalink
Don't set presets
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jan 23, 2025
1 parent b72d890 commit 2285170
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Craft CMS 5

## Unreleased

- Fixed a bug where Color fields’ custom color inputs were including presets based on the color palette.

## 5.6.1 - 2025-01-22

- Fixed a bug where all multi-byte characters were getting stripped out of search indexes. ([#16457](https://github.com/craftcms/cms/issues/16457))
Expand Down
1 change: 0 additions & 1 deletion src/fields/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ protected function inputHtml(mixed $value, ?ElementInterface $element, bool $inl
'describedBy' => $this->describedBy,
'name' => "$this->handle[custom]",
'value' => $isCustom ? $value->getHex() : null,
'presets' => $this->getPresets(),
]) .
Html::endTag('div');
} elseif ($value && !$isInPalette) {
Expand Down

0 comments on commit 2285170

Please sign in to comment.