Skip to content

fix: support defaultValue in showColorPicker app env#2932

Merged
jelveh merged 1 commit intoHeyPuter:mainfrom
devareddy05:fix/colorpicker-defaultvalue-app-env
May 6, 2026
Merged

fix: support defaultValue in showColorPicker app env#2932
jelveh merged 1 commit intoHeyPuter:mainfrom
devareddy05:fix/colorpicker-defaultvalue-app-env

Conversation

@devareddy05
Copy link
Copy Markdown
Contributor

Fixes #2895.

Mirrors the pattern from #2930 (puter.ui.prompt): accept defaultValue first, then fall back to the existing option name. Two-line change — one in UIWindowColorPicker.js (puter app env) and one in puter-js/UI.js (web standalone fallback) — so callers can use the same defaultValue key in both environments.

Existing default (and defaultColor in web) keep working unchanged.

@jelveh jelveh self-assigned this May 6, 2026
@jelveh jelveh merged commit b3bf979 into HeyPuter:main May 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for defaultValue option for puter.ui.setColorPicker in puter app environment

2 participants