All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
1.0.0-beta.13 (2019-11-22)
- Fix
form.reset()
not reverting array fields to initial state (#503) (43ca6a8), closes #502 - Prevent an unnecessary re-render on
Button
(e39842d) - Standardize precedence when
options
andhtmlProps
conflict (#501) (5b8e02f) - Stop ignoring
checked
andvalue
props passed as html props touseCheckbox
(#500) (c8cb0bb), closes #465 - Stop persisting
onChange
event onCheckbox
(#499) (fd4a694), closes #498
-
When passing a custom
onChange
prop toCheckbox
,event.target.checked
will no longer return a different value than when using the native<input type="checkbox">
element.Before:
<Checkbox onChange={event => setChecked(!event.target.checked)} />
After:
<Checkbox onChange={event => setChecked(event.target.checked)} />
1.0.0-beta.12 (2019-11-14)
- reakit-system: Replace
useCompose
byuseComposeOptions
oncreateHook
(#493) (50fd7df) - Add
baseId
option touseHiddenState
and derivative hooks (837aa58) - Add
baseId
option touseRoverState
and derivative hooks (#494) (42e9dd0) - Add experimental
Id
module (#492) (5d87e99)
1.0.0-beta.11 (2019-11-08)
- Fix
Tabbable
preventing click after enabling it (#481) (6b58a34), closes #480 - Fix
Tabbable
preventing space and enter keys onFormInput
(3f49d6b)
1.0.0-beta.10 (2019-11-02)
- Fix
MenuItemCheckbox
andMenuItemRadio
not working (#473) (11b7bfa), closes #472 - Fix
Rover
trying to focus itself again when it receives focus (#476) (b27194e) - Fix
Tabbable
focus behavior on Mac Safari/Firefox (#458) (8306241) - Stop adding
type="button"
onButton
by default (#474) (82b7279)
1.0.0-beta.9 (2019-10-12)
- Add a
useIsomorphicEffect
hook to allow proper SSR rendering (#461) (47434b2), closes #438 - Fix
PopoverArrow
ignoringsize
prop (#455) (5f51e39), closes #454 - Fix nested
Dialog
s not working with VoiceOver (#457) (208bcb6) - Make
Menu
run without menu state props (#459) (5992362) - Prevent scrollbar flickering when opening
Dialog
(#450) (d84fd10), closes #449
1.0.0-beta.8 (2019-09-25)
- Fix
MenuItem
ignoringref
prop (19119ca) - Fix focus not going onto
MenuDisclosure
after closing aMenu
opened with down arrow (01f83ba) - Replace IE11 incompatible DOM features (#443) (8837557), closes #360
- Add
gutter
option tousePopoverState
(#442) (5e9bc21) - Add experimental
unstable_portal
prop toTooltip
(#440) (1b2d5dd) - Add experimental
unstable_scheduleUpdate
function tousePopoverState
return (still undocumented) (b40a4da)
1.0.0-beta.7 (2019-09-19)
- Fix
Dialog
initial focus (#433) (a0916c7) - Fix
Dialog
withtabIndex={0}
not being included in the tab order (#426) (bfb1d05) - Fix
FormSubmitButton
ignoringdisabled
prop (#439) (bbfdfdd), closes #437
- Accept multiple
DialogDisclosure
s for a singleDialog
(#427) (0cb7432) - Add
MenuBar
component (#436) (3d13c33) - Export
PortalContext
(#431) (c5a780a), closes #428
-
StaticMenu
has been replaced byMenuBar
.Before:
import { useMenuState, StaticMenu } from "reakit/Menu"; const menu = useMenuState(); <StaticMenu {...menu} />;
After:
import { useMenuBarState, MenuBar } from "reakit/Menu"; const menuBar = useMenuBarState(); // useMenuState can be used here as well <MenuBar {...menuBar} />;
1.0.0-beta.6 (2019-08-25)
- Fix
Checkbox
event.target.checked
value insideonChange
event (#419) (75063fc), closes #393 - Fix
FormInput
astextarea
caret position when focusing (#420) (d8e7af3), closes #418 - Fix
useRoverState
and its derivatives including all props in the return object (987d16e) - Remove erroneous
React.LiHTMLAttributes
type fromToolbarItemHTMLProps
(0cb6e66)
- reakit-utils: Move
tabbable
internal module toreakit-utils
package (b84acce) - Add new
MenuArrow
component (#422) (731a376) - Add support for
HiddenDisclosure
to control multipleHidden
components (#423) (bdfbd74) - Support nested
Tabbable
andRover
components (#417) (ee9623e), closes #376
1.0.0-beta.5 (2019-08-12)
- Fix typings (29c4456)
- Fix
FormGroup
andFormRadioGroup
not receiving focus whenForm
has been submited with errors (59adc8b) - Fix
FormSubmitButton
not considering elements other than inputs as invalid fields (c4f688a) - Fix
Hidden
not settingunstable_animating
tofalse
while visible (#410) (6d5827c), closes #407 - Fix
Menu
preventing default behavior when pressing ASCII keys on elements other thanMenuItem
(cacb978) - Fix
Tooltip
error whenvisible
is initially set totrue
(#409) (c132e56), closes #408 - Fix empty array values being filtered prematurely before
useFormState
'sonValidate
(6052829)
- Support
onSubmit
andonValidate
functions to be updated between renders inuseFormState
(#411) (f576db1), closes #400
1.0.0-beta.4 (2019-06-27)
- Always focus
Rover
when callingrover.{move|first|last}()
(#389) (f346df4) - Fix missing React Hooks deps (b08b62c)
- website: Hide state hook props from docs (#390) (fdac912)
- Add new
size
prop toPopoverArrow
andTooltipArrow
(11a6df1), closes #383
1.0.0-beta.3 (2019-06-23)
- Add missing deps to
usePopoverState
effect (d44df81) - Make
Menu
work properly withunstable_animated
(#386) (b96c466) - Remove false positive warning from
Dialog
(#385) (5334bd4)
- Utils aren't exported by
reakit
orreakit/utils
anymore. Import them from thereakit-utils
package instead. - System utils aren't exported by
reakit
orreakit/system
anymore. Import them from thereakit-system
package instead. Provider
isn't exported byreakit/utils
orreakit/utils/Provider
anymore. Import it fromreakit
orreakit/Provider
instead.
1.0.0-beta.2 (2019-06-01)
- Fix
Checkbox
toggling twice on space bar key on Firefox (#369) (27e9b63), closes #368 - Remove
async
/await
so users don't need regenerator-runtime (#365) (9c6d41a) - Stop adding
role="button"
onButton
by default (574e2a9)
- Add
unstable_animated
option touseHiddenState
and its derivatives (#370) (4ba7f61) - Enable conditional render on
Hidden
components with render props (#371) (70322c2) - Remove z-index and extra styles from
Dialog
andDialogBackdrop
(#372) (5edd0d8), closes #366
-
Removed extra styles from
Dialog
andDialogBackdrop
and all their derivative components. Also removed defaultz-index
fromTooltip
. These styles have been moved to thereakit-system-bootstrap
package. If you're not using this system package, you should apply the styles manually.Before:
<DialogBackdrop /> <Dialog /> <Popover /> <Menu /> <Tooltip />
After:
<DialogBackdrop style={{ position: "fixed", top: 0, right: 0, bottom: 0, left: 0, zIndex: 998 }} /> <Dialog style={{ zIndex: 999 }} /> <Popover style={{ zIndex: 999 }} /> <Menu style={{ zIndex: 999 }} /> <Tooltip style={{ zIndex: 999 }} />
1.0.0-beta.1 (2019-05-21)
- Avoid infinite loop when using render props composition (8256330)
- Fix
Provider
not working withoutunstable_system
prop (37862fb) - Stop flipping
orientation
onSeparator
(52a0e63)
- Set
display: none
onHidden
when itsvisible
prop is set tofalse
(73d6cd2)
Separator
doesn't flip itsorientation
anymore. If you passorientation="vertical"
it'll renderaria-orientation="vertical"
now.
1.0.0-beta.0 (2019-05-13)
- Fix
Tabbable
erroneously preventingonMouseDown
on inputs (10af438) - Fix nested
Dialogs
not closing when parent dialogs close (84d1e16)
1.0.0-alpha.4 (2019-05-12)
- Fix
Menu
not correctly moving with arrow keys (3b55b85) - Fix
PopoverArrow
styles (a90d71f) - Fix
Tabbable
not responding toEnter
key (24b54c3) - Fix arrow keys closing
Dialog
opened byMenu
(c3fdbcd) - Prevent buggy scroll on focus when showing Dialog (e0a328b)
- Remove the need of double click on
MenuItem
on mobile (73b920e) - Render
VisuallyHidden
asspan
instead ofdiv
since it could be placed in an inline element (ac24c08)
- Add
state
andsetState
props toCheckbox
andRadio
(5902ab1) - Add
unstable_animated
prop toHidden
(e0ff29f) - Add
unstable_preventOverflow
,unstable_boundariesElement
andunstable_fixed
props tousePopoverState
(f0930e2) - Add experimental
unstable_orphan
prop toDialog
(d0f6b52) - Remove experimental
KeyBinder
in favor of internalcreateOnKeyDown
util (b0adfa8) - Rename
mergeProps
util tounstable_mergeProps
(9be2e14) - Warn when some refs aren't passed to components (92f035c)
- Improve general performance by using
React.memo
on components (91f0d54)
mergeProps
util has been renamed tounstable_mergeProps
and is not exported by the root package anymore. Instead, it should be imported fromreakit/utils/mergeProps
.currentValue
andsetValue
have been replaced bystate
andsetState
onCheckbox
,Radio
and all their derivative components and related hooks.- All the
ComponentProps
typings have been renamed toComponentHTMLProps
.ComponentProps
is now the combination ofComponentOptions
andComponentHTMLProps
. placement
prop is now required onMenuDisclosure
.placement
prop is now required onMenu
.
1.0.0-alpha.3 (2019-04-25)
- Fix
Checkbox
not revertingindeterminate
state whencurrentValue
changes (2ee7455) - Fix
mouseOut
events triggering outsideDialog
. (d814ddf) - Fix arrow keys not working on
Menu
when cursor leaves it (9f278ac) - Fix arrow keys on
MenuItem
incorrectly hidingMenu
(94bd9db) - Fix focusing
MenuItem
on mouse over outside an openDialog
(aac7f3c)
- Add
VisuallyHidden
component (7b1d826) - Add experimental
KeyBinder
component (7eb739a) - Render
MenuGroup
as adiv
instead offieldset
(5d4b476) - Return
unstable_wrap
method from props hooks (f668ae4)
1.0.0-alpha.2 (2019-04-17)
MenuDisclosure
should close the submenu when in menubar (d481674)- Change system's
useProps
order in built-in components (e679024) - Fix
DialogDisclosure
not closingDialog
on Safari whenhideOnClickOutside
is truthy (37865cf) - Fix
MenuDisclosure
race condition on focus/click (8a37d31) - Make click/focus behavior cross-browser by automatically focusing
Tabbable
on mouse down (54b618c) - Restore
hasShownOnFocus
state inMenuDisclosure
(63228fd)
- Add
use
prefix automatically inuseProps
/useOptions
(167fda1) - Expose
unstable_useSealedState
util (1540eab) - Remove
unstable_
prefix fromcurrentId
prop (003d1ad) - Remove
unstable_
prefix fromfocusable
prop (965dcb7) - Remove
unstable_
prefix fromloop
,move
,next
,previous
,first
,last
props (501f822) - Remove
unstable_
prefix frommanual
,selectedId
,select
props (c36413f) - Remove
unstable_
prefix fromstops
,register
andunregister
props (061cc55) - Remove focus from
MenuItem
on mouse out (fdd1bb8)
1.0.0-alpha.1 (2019-04-09)
- Clicking on an element inside the disclosure should hide Dialog (93072cb)
1.0.0-alpha.0 (2019-04-02)
Note: Version bump only for package reakit