ocr-p14-dropdown-npm
Advanced tools
Comparing version 2.4.0 to 2.5.0
{ | ||
"name": "ocr-p14-dropdown-npm", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -53,3 +53,3 @@ # OCR-P14-DROPDOWN-NPM | ||
### Example with reset dropdown selection | ||
### Example with name, id and reset dropdown selection | ||
@@ -81,2 +81,4 @@ If for example, the user submit a form and you want to reset the dropdown component to its original state, you can add a state and pass the onReset props to true. | ||
onReset={onResetState} | ||
name="dropdownExample" | ||
id="dropdownExample" | ||
/> | ||
@@ -83,0 +85,0 @@ <button onClick={() => setOnResetState(true)}>Reset dropdown selection</button> |
20753
120