Questions about Dropdown component #2235
Replies: 1 comment
-
Neither
This component has never had an
Yes, we made the change in October (following a deprecation window from May), which itself followed (belatedly) USWDS' rename of the component from Here's how your code could look with the above edits:
|
Beta Was this translation helpful? Give feedback.
-
Given the code below:
Why does the reset button not work?
Dropdown's options attribute doesn't seem to be valid. I think it worked in previous versions. I had to resort to using option elements. It's not mentioned in the documentation anymore.
Is Dropdown deprecated? It seems to not be mentioned in many documentation locations, such as the official uswds website.
dependencies:
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@trussworks/react-uswds": "^4.0.0",
"@uswds/uswds": "3.1.0",
"node": "^18.12.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4",
"yarn": "^1.22.19"
Tested on
Chrome 109.0.5414.74
Firefox 108.0.2
Beta Was this translation helpful? Give feedback.
All reactions