LinkToolbar fixes

This commit is contained in:
Jori Lallo
2017-09-11 00:07:51 -07:00
parent 974cf8f088
commit 57853861e5

View File

@@ -22,7 +22,7 @@ export default class LinkToolbar extends Component {
case 13: // enter
ev.preventDefault();
return this.save(ev.target.value);
case 26: // escape
case 27: // escape
return this.input.blur();
default:
}
@@ -52,7 +52,7 @@ export default class LinkToolbar extends Component {
return (
<LinkEditor>
<Input
ref={ref => (this.input = ref)}
innerRef={ref => (this.input = ref)}
defaultValue={href}
placeholder="http://"
onBlur={this.props.onBlur}