Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/formError.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Test extends Component {
overlayStyle={{ zIndex: 1000 }}
overlay={<span>required!</span>}
>
<input onChange={this.handleChange} />
<input onChange={this.handleChange} onBlur={this.handleChange} />
</Tooltip>
</div>
<button type="button" onClick={this.handleDestroy}>
Expand Down
13 changes: 3 additions & 10 deletions examples/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ class Test extends Component {
<div style={{ margin: '10px 20px' }}>
<label>
placement:
<select
value={this.state.placement}
onChange={this.onPlacementChange}
>
<select value={this.state.placement} onChange={this.onPlacementChange}>
{Object.keys(placements).map(p => (
<option key={p} value={p}>
{p}
Expand Down Expand Up @@ -165,17 +162,13 @@ class Test extends Component {
destroyTooltipOnHide={this.state.destroyTooltipOnHide}
trigger={Object.keys(this.state.trigger)}
onVisibleChange={this.onVisibleChange}
overlay={
<div style={{ height: 50, width: 50 }}>i am a tooltip</div>
}
overlay={<div style={{ height: 50, width: 50 }}>i am a tooltip</div>}
align={{
offset: [this.state.offsetX, this.state.offsetY],
}}
transitionName={this.state.transitionName}
>
<div style={{ height: 100, width: 100, border: '1px solid red' }}>
trigger
</div>
<div style={{ height: 100, width: 100, border: '1px solid red' }}>trigger</div>
</Tooltip>
</div>
</div>
Expand Down