Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Apr 9, 2015
1 parent 876478e commit 2207d63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/simple.js
Expand Up @@ -57,6 +57,10 @@ var Test = React.createClass({
});
},

preventDefault(e){
e.preventDefault();
},

render() {
console.log(this.state);
var trigger = this.state.trigger;
Expand Down Expand Up @@ -94,7 +98,7 @@ var Test = React.createClass({
<Tooltip placement={this.state.placement}
trigger={Object.keys(this.state.trigger)}
overlay={<span>i am a tooltip</span>} transitionName={this.state.transitionName}>
<a href='#'>trigger</a>
<a href='#' onClick={this.preventDefault}>trigger</a>
</Tooltip>
</div>
</div>;
Expand Down

0 comments on commit 2207d63

Please sign in to comment.