Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #10609: Colorpicker double conversion #10612

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

melloware
Copy link
Member

@melloware melloware commented Sep 7, 2023

Fix #10609: Colorpicker double conversion

I have confirmed that removing this line causes it to be called only once and properly.

Before:

getAsString null
getAsObject #853232
getAsObject 853232
Color = 853232

After:

getAsString null
getAsObject #853232
Color = 853232

@melloware melloware added the 🐞 defect Bug...Something isn't working label Sep 7, 2023
@@ -161,7 +160,6 @@ protected void encodeScript(FacesContext context, ColorPicker colorPicker, Strin
.attr("locale", colorPicker.calculateLocale(context).toString())
.attr("mode", colorPicker.getMode())
.attr("defaultColor", value, null)
.attr("theme", colorPicker.getTheme())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was declared twice.

@melloware melloware added ⚡ performance Performance related issue or enhancement and removed 🐞 defect Bug...Something isn't working labels Sep 8, 2023
@melloware melloware merged commit 1a49f72 into primefaces:master Sep 8, 2023
10 checks passed
@melloware melloware deleted the PF10609-colorpicker branch September 8, 2023 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡ performance Performance related issue or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ColorPicker: Submitted value set to converted value.
1 participant