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

feat(Select): should be able to add name to the select component #1046

Merged
merged 3 commits into from
Nov 3, 2023

Conversation

framitdavid
Copy link
Contributor

@framitdavid framitdavid commented Nov 3, 2023

I added a new prop named "inputName" to be able to set the name of the combobox. I followed the same pattern as "inputId" to ensure it was done consistently. This might be done differently when the component is migrated from Altinn to Digdir. 😊

Resolves: 1047

Copy link
Contributor

github-actions bot commented Nov 3, 2023

Preview deployments for this pull request:

📖 Storybook 3. Nov 2023 - 10:20 (Norwegian time)

See all deployments at https://dev.designsystemet.no

@framitdavid framitdavid linked an issue Nov 3, 2023 that may be closed by this pull request
Copy link
Collaborator

@mimarz mimarz left a comment

Choose a reason for hiding this comment

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

The "new" component will certainly just behave as a normal input would, allowing you to set name :)

Approving this as is as this component will be moved to legacy anyway.

@framitdavid
Copy link
Contributor Author

The "new" component will certainly just behave as a normal input would, allowing you to set name :)

Approving this as is as this component will be moved to legacy anyway.

I had the same thought, which is why I implemented it in this manner. 😊

@framitdavid framitdavid merged commit 4d9fbb2 into main Nov 3, 2023
3 checks passed
@framitdavid framitdavid deleted the feat/ShouldBePossibleToAddNameToSelect branch November 3, 2023 09:31
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.

Should be able to set name of select component
2 participants