🔮构建简单,灵活,符合WAI-ARIA标准的React自动完成组件
🔮构建简单,灵活,符合WAI-ARIA标准的React自动完成组件 silviuavram released this
3.4.2 (2019-11-20)
Bug Fixes
Assets
2
silviuavram released this
Assets
2
Assets
2
Assets
2
silviuavram released this
Assets
2
Assets
2
Assets
2
silviuavram released this
Assets
2
Assets
2
Assets
2
Assets
2
Assets
2
Assets
2
Assets
2
Assets
2
Assets
2
Assets
2
Assets
2
Assets
2
Assets
2
v2.1.0
kentcdodds released this
v2.0.20
kentcdodds released this
v2.0.19
kentcdodds released this
v2.0.18
kentcdodds released this
v2.0.17
kentcdodds released this
v2.0.16
kentcdodds released this
v2.0.14
kentcdodds released this
v2.0.11
kentcdodds released this
v2.0.10
kentcdodds released this
v2.0.9
kentcdodds released this
v2.0.5
kentcdodds released this
v2.0.3
kentcdodds released this
v2.0.0
kentcdodds released this
2.0.0 (2018-06-14)
New Features
- Improved TypeScript Definitions
- New FlowTyped Definitions
- Improved TS and Flow integration
- Documentation re-organization to make it easier to identify the most common props.
- A new prop getter called
getMenuProps
is recommended for accessibility purposes. - Simplified setting element IDs with new props:
labelId
,inputId
,menuId
, andgetItemId
which simplifies the internal implementation as well as resolving confusing accessibility issues. (These props are not required).
Bug Fixes
- A bunch of accessibility-related improvements and fixes
- Downshift now works much better with menus rendered within a portal (given you use the new
getMenuProps()
).
Breaking Changes
- Previously we supported
render
(<Downshift render={() => {}} />
) andchildren
(<Downshift>={() => {}}</Downshift>
). Now we only support thechildren
prop.
-<Downshift render={yourRenderFn} />
+<Downshift>{yourRenderFn}</Downshift>
- The
breakingChanges
prop has been removed and theresetInputOnSelection
option is now the default behavior. It only applies for use cases where theselectedItem
is controlled. Learn more about this in #243. - If you're using CommonJS, you'll need to change your require statement:
-const Downshift = require('downshift')
+const Downshift = require('downshift').default
- If you're using
resetIdCounter
, that's now exported separate fromDownshift
:
-import Downshift from 'downshift'
-Downshift.resetIdCounter()
+import Downshift, {resetIdCounter} from 'downshift'
+resetIdCounter()
Special thank you
All of the project contributors have been awesome. Thank you all. Here are a few specific people who helped in this release:
@kentcdodds, @stereobooster, @franklixuefei, @dovidweisz, @Antontelesh, @tansongyang, @Andarist, @cycomachead, @mperrotti, @SiTaggart, and @1Copenut
v1.31.16
kentcdodds released this
v1.31.15
kentcdodds released this
v1.31.14
kentcdodds released this
v1.31.13
kentcdodds released this
v1.31.12
kentcdodds released this
v1.31.11
kentcdodds released this
v1.31.7
kentcdodds released this
v1.31.6
kentcdodds released this
v1.31.5
kentcdodds released this
v1.31.3
kentcdodds released this
v1.31.2
kentcdodds released this
v1.30.2
kentcdodds released this
v1.30.1
kentcdodds released this
v1.30.0
kentcdodds released this
v1.29.1
kentcdodds released this
v1.28.5
kentcdodds released this
v1.28.2
kentcdodds released this
v1.28.0
kentcdodds released this
1.28.0 (2018-02-06)
Features
- experimental: add experimental support for React Native as a target (#265) (6f9a306), closes /github.com/facebook/react-native/blob/70c359000a2df091c3939f4c19db6024af992d43/Libraries/Core/InitializeCore.js#L194-L195
v1.27.1
kentcdodds released this
v1.27.0
kentcdodds released this
1.27.0 (2018-01-31)
Features
This is a really handy new feature! I definitely recommend checking out the docs for stateReducer
and seeing if you can use that rather than control props + onStateChange
. If you're not using control props and onStateChange
, then don't bother. That said, this is a great new API to reach for if downshift is not behaving the way you want it to.
v1.26.1
kentcdodds released this
v1.25.0
kentcdodds released this
v1.24.1
kentcdodds released this
v1.23.2
kentcdodds released this
c90e41b
Verified
3.4.5 (2019-12-02)
Performance Improvements