-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from rpearce/controlled-uncontrolled
Controlled vs uncontrolled
- Loading branch information
Showing
18 changed files
with
20,997 additions
and
15,976 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"presets": ["latest", "react"], | ||
"presets": ["env", "react"], | ||
"plugins": ["transform-object-assign"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [2.0.0] - 2017-09-21 | ||
### Added | ||
- Changelog (so meta...) | ||
- When in controlled mode (`isZoomed` is provided), the `onUnzoom` callback will fire when the component normally would have closed | ||
|
||
### Changed | ||
- Differentiation between controlled & uncontrolled modes (when `isZoomed` is passed vs letting component control itself) | ||
|
||
### Deprecated | ||
- n/a | ||
|
||
### Removed | ||
- Removed preload functionality | ||
|
||
### Fixed | ||
- Support for the component immediately zooming if `isZoomed={true}` is provided on mount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.