10 examples of 'react onenter' in JavaScript

Every line of 'react onenter' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
161value: function onEnter() {
162 this.setState({
163 state: 'enter',
164 showLoading: false
165 });
166}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

176value: function onEntered() {
177 this.setState({
178 state: 'entered'
179 });
180}
254onEntered: function onEntered() {
255 return _this3.onEntered();
256},
108_onEnter: function _onEnter() {
109 var i = this.$.input.selectionStart,
110 j = this.$.input.value;
111 this.fire("add-item", {
112 item: this,
113 value: j.slice(0, i),
114 new: j.slice(i, j.length)
115 });
116},
42function onEnter(nextState, replaceState) {
43 if (Object.keys(nextState.location.query).length === 0) {
44 replaceState(null, '/', defaultQuery);
45 }
46}
16onKeyPress(e) {
17 if (e.keyCode === 13) {
18 this.props.onEnter(this.state.value);
19 this.setState({ value: '' });
20 }
21}
399value: function _onEnter(event) {
400 var activeRow = this.state.activeRow;
401 var intl = this.context.intl;
402
403 if (this.tableRef.contains(document.activeElement) && activeRow !== undefined) {
404 var rows = immediateTableChildOnly(this.tableRef.querySelectorAll('tbody tr'), this.tableRef);
405 this._fireClick(rows[activeRow], event.shiftKey);
406 rows[activeRow].classList.remove(ACTIVE_CLASS);
407 var label = rows[activeRow].innerText;
408 var selectedMessage = _Intl2.default.getMessage(intl, 'Selected');
409 (0, _Announcer.announce)(label + ' ' + selectedMessage);
410 }
411}
69function onEnter() {
70 // eslint-disable-next-line no-unused-expressions
71 window && window.ga && window.ga('send', 'pageview');
72 scrollTop();
73}
129onMouseEnter:function onMouseEnter(){return _this3.setState({hovered:true});},
15onKeyDown({event}) {
16 if (event.metaKey || event.ctrlKey) {
17 return;
18 }
19
20 switch (event.key) {
21 case 'Enter':
22 if (this.props.onEnter && this.props.onEnter !== _.noop) {
23 event.preventDefault();
24 this.props.onEnter({event, component: this});
25 }
26 break;
27 default:
28 break;
29 }
30}

Related snippets