@andersonalmeidax0/webcomponents 0.1.43 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/XInput.jsx +1 -1
- package/package.json +1 -1
package/XInput.jsx
CHANGED
|
@@ -117,7 +117,7 @@ class XInputExternal extends React.Component {
|
|
|
117
117
|
<React.Fragment>
|
|
118
118
|
<input id={this.props.id} style={this.style1(this.state.valid)} readOnly={this.props.readOnly}
|
|
119
119
|
defaultValue={this.state.localValue} value={this.state.localValue} onChange={this.onChangeCheckInterceptor}
|
|
120
|
-
onKeyDown ={(e)=>{if (e.keyCode === 13){console.log('Xint.onKEnter');this.props.onEnterKey()
|
|
120
|
+
onKeyDown ={(e)=>{if (e.keyCode === 13){console.log('Xint.onKEnter');this.props.onEnterKey();/*this.setState({localValue:''})*/; }}} />
|
|
121
121
|
{(this.state.valid)?'':'(invalid)'}
|
|
122
122
|
</React.Fragment>
|
|
123
123
|
); else
|