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

Radio e Checkbox Groups states #2031

Open
lafray opened this issue Oct 24, 2024 · 0 comments
Open

Radio e Checkbox Groups states #2031

lafray opened this issue Oct 24, 2024 · 0 comments
Labels
dev Indicates that the issue or pull request involves engineering considerations proposal Proposals for enhancements to the software

Comments

@lafray
Copy link
Contributor

lafray commented Oct 24, 2024

Problem

Acredito que tenha uma questão de diferença entre o controle de estado desses campos e os outros campos da lib (como Input, TextArea, etc.), que não deveria existir. Na evolução de admin-ui para shoreline, o elementos passaram a ser controlados sem necessidade de hooks especificos, o que não é o caso desses comportamentos. Não deveria ser eliminado a necessidade do hook como nos outros elementos?

Solution

Ele poderia utilizar de uma logica parecida com a do input, que utiliza de um hook para ter a troca de controlable para uncontrolable.

Usage examples

No response

Dependencies

No response

References

const [_value, _setValue] = useControlledState(

@lafray lafray added the proposal Proposals for enhancements to the software label Oct 24, 2024
@beatrizmilhomem beatrizmilhomem added the dev Indicates that the issue or pull request involves engineering considerations label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Indicates that the issue or pull request involves engineering considerations proposal Proposals for enhancements to the software
Projects
Status: No status
Development

No branches or pull requests

2 participants