Skip to content

Conversation

@atomiks
Copy link
Contributor

@atomiks atomiks commented Dec 5, 2025

Fixes object values with <Form onFormSubmit> passing the plain object instead of the stringified form value

@atomiks atomiks added component: select Changes related to the select component. type: bug It doesn't behave as expected. component: combobox Changes related to the combobox component. labels Dec 5, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 5, 2025

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui-components/react@3441
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui-components/utils@3441
    

commit: 69090af

@mui-bot
Copy link

mui-bot commented Dec 5, 2025

Bundle size report

Bundle Parsed size Gzip size
@base-ui-components/react 🔺+168B(+0.04%) 🔺+63B(+0.05%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@netlify
Copy link

netlify bot commented Dec 5, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 69090af
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6932dd2afbd582000873e621
😎 Deploy Preview https://deploy-preview-3441--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks atomiks marked this pull request as ready for review December 5, 2025 13:24
Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

Makes sense. 👍
Even though there might be cases where having the full object could be useful, those should be a minority. 👌

controlRef,
name,
getValue: () => value,
getValue: () => fieldStringValue,
Copy link
Member

Choose a reason for hiding this comment

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

Since we only use fieldStringValue inside this callback, does it make sense to compute it lazily?
Or is it used frequently enough to always compute it in the render?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

value/getValue are distinct for the useField hook

@atomiks atomiks merged commit aec3cd5 into mui:master Dec 8, 2025
22 checks passed
@atomiks atomiks deleted the fix/combobox-select-form-value branch December 8, 2025 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: combobox Changes related to the combobox component. component: select Changes related to the select component. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants