diff --git a/README.md b/README.md index 0b48d459..aa69403f 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ [![npm version](https://img.shields.io/npm/v/react-desktop.svg)](https://www.npmjs.org/package/react-desktop) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gabrielbull/react-desktop?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) -React UI Components for macOS Sierra and Windows 10. +React UI Components for macOS High Sierra and Windows 10. > npm install react-desktop --save diff --git a/docs/README.md b/docs/README.md index 3bf220b9..50eadfda 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,7 +1,7 @@ # Documentation **react-desktop** is a JavaScript library built on top of [Facebook's React](https://facebook.github.io/react/) library, -which aims to bring a native desktop experience to the web, featuring many macOS Sierra and Windows 10 components. +which aims to bring a native desktop experience to the web, featuring many macOS High Sierra and Windows 10 components. **react-desktop** works perfectly with [NW.js](http://nwjs.io) and [Electron.js](http://electron.atom.io), but can be used in any JavaScript powered project! diff --git a/package.json b/package.json index 8e55ed08..974c7184 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "react-desktop", "author": "Gabriel Bull", - "version": "0.3.1", - "description": "React UI Components for macOS Sierra and Windows 10", + "version": "0.3.2", + "description": "React UI Components for macOS High Sierra and Windows 10", "main": "./index.js", "keywords": [ "react", diff --git a/src/masterDetailsView/windows/masterDetailsView.js b/src/masterDetailsView/windows/masterDetailsView.js index 4bc84f33..e3b922bb 100644 --- a/src/masterDetailsView/windows/masterDetailsView.js +++ b/src/masterDetailsView/windows/masterDetailsView.js @@ -81,11 +81,6 @@ class MasterDetailsView extends Component { select(index) { this.setState({ selected: index }); - for (var prop in this.refs) { - if (this.refs.hasOwnProperty(prop) && prop.indexOf('master') === 0) { - this.refs[prop].setState({ selected: prop === 'master' + index }); - } - } } filterChildren(children) { @@ -98,12 +93,12 @@ class MasterDetailsView extends Component { } this.masters = [ ...this.masters, - cloneElement(child, { key: key, ref: 'master' + key, index: key }) + cloneElement(child, { key: key, index: key }) ]; } else if (child.type === Details) { this.details = [ ...this.details, - cloneElement(child, { key: key, ref: 'details' + key, index: key }) + cloneElement(child, { key: key, index: key }) ]; } });