react-google-maps
Advanced tools
Comparing version 4.6.1 to 4.6.2
@@ -0,1 +1,11 @@ | ||
<a name="4.6.2"></a> | ||
## [4.6.2](https://github.com/tomchentw/react-google-maps/compare/v4.6.1...v4.6.2) (2015-12-07) | ||
### Features | ||
* **SearchBox:** add placeholder props to the underlying input element ([e6a6a02](https://github.com/tomchentw/react-google-maps/commit/e6a6a02)), closes [#115](https://github.com/tomchentw/react-google-maps/issues/115) [#136](https://github.com/tomchentw/react-google-maps/issues/136) | ||
<a name="4.6.1"></a> | ||
@@ -2,0 +12,0 @@ ## [4.6.1](https://github.com/tomchentw/react-google-maps/compare/v4.6.0...v4.6.1) (2015-12-03) |
@@ -80,4 +80,5 @@ "use strict"; | ||
var style = _props.style; | ||
var placeholder = _props.placeholder; | ||
var searchBoxProps = _objectWithoutProperties(_props, ["mapHolderRef", "classes", "style"]); | ||
var searchBoxProps = _objectWithoutProperties(_props, ["mapHolderRef", "classes", "style", "placeholder"]); | ||
@@ -89,2 +90,3 @@ // Cannot create input via component - Google Maps will mess with React's internal state by detaching/attaching. | ||
domEl.type = "text"; | ||
domEl.placeholder = placeholder; | ||
@@ -91,0 +93,0 @@ for (var propKey in style) { |
{ | ||
"__template__gist__": "https://gist.github.com/tomchentw/368a93bb748ad9d576f1#file-package-json", | ||
"name": "react-google-maps", | ||
"version": "4.6.1", | ||
"version": "4.6.2", | ||
"description": "React.js Google Maps integration component", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -49,3 +49,3 @@ import { | ||
} | ||
const {mapHolderRef, classes, style, ...searchBoxProps} = this.props; | ||
const {mapHolderRef, classes, style, placeholder, ...searchBoxProps} = this.props; | ||
@@ -57,3 +57,4 @@ // Cannot create input via component - Google Maps will mess with React's internal state by detaching/attaching. | ||
domEl.type = "text"; | ||
domEl.placeholder = placeholder; | ||
for (var propKey in style) { | ||
@@ -60,0 +61,0 @@ if (style.hasOwnProperty(propKey)) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
347553
6590