Skip to content

Commit e3856c1

Browse files
onCopy, onCut, onPaste
1 parent 09f46b5 commit e3856c1

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-chat-elements",
3-
"version": "0.4.27",
3+
"version": "0.4.28",
44
"description": "Reactjs chat components",
55
"author": "Avare Kodcu <abdurrahmaneker58@gmail.com>",
66
"main": "dist/main.js",

src/Input/Input.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export class Input extends Component {
6363
value={this.state.value}
6464
style={this.props.inputStyle}
6565
onChange={this.onChange.bind(this)}
66+
onCopy={this.props.onCopy}
67+
onCut={this.props.onCut}
68+
onPaste={this.props.onPaste}
6669
onBlur={this.props.onBlur}
6770
onFocus={this.props.onFocus}
6871
onSelect={this.props.onSelect}
@@ -84,6 +87,9 @@ export class Input extends Component {
8487
value={this.state.value}
8588
style={this.props.inputStyle}
8689
onChange={this.onChange.bind(this)}
90+
onCopy={this.props.onCopy}
91+
onCut={this.props.onCut}
92+
onPaste={this.props.onPaste}
8793
onBlur={this.props.onBlur}
8894
onFocus={this.props.onFocus}
8995
onSelect={this.props.onSelect}

0 commit comments

Comments
 (0)