gabrielbull / react-desktop

React UI Components for macOS High Sierra and Windows 10
http://reactdesktop.js.org
MIT License
9.52k stars 462 forks source link

Issue when use TextInput inside Window #93

Open panpetedextra opened 7 years ago

panpetedextra commented 7 years ago

Hi,

my render function look like this

  render() {
    return (
      <div>
        <Window
          color={this.props.color}
          theme={this.props.theme}
          chrome
          height="300px"
          padding="12px"
        >
          <TitleBar title="My Windows Application" controls/>
          <TextInput
            theme={this.props.theme}
            color={this.props.color}
            background
            label="My Input"
            placeholder="My Input"
            onChange={this.handleChange}
          />
        </Window>
        <TextInput
          theme={this.props.theme}
          color={this.props.color}
          background
          label="My Input"
          placeholder="My Input"
          onChange={this.handleChange}
        />
      </div>
    );
  }

When enter value to both TextInput and swap to another tap (in my case using Chrome just hit F12 for developer tools). The input under Window will change to blank while the input outside Window still has its value.

gabrielbull commented 7 years ago

Please submit a PR and we will accept it.