ink-text-input
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -42,2 +42,4 @@ "use strict"; | ||
_defineProperty(this, "isMounted", false); | ||
_defineProperty(this, "handleInput", data => { | ||
@@ -56,3 +58,3 @@ const { | ||
if (focus === false) { | ||
if (focus === false || this.isMounted === false) { | ||
return; | ||
@@ -168,2 +170,3 @@ } | ||
} = this.props; | ||
this.isMounted = true; | ||
setRawMode(true); | ||
@@ -178,2 +181,3 @@ stdin.on('data', this.handleInput); | ||
} = this.props; | ||
this.isMounted = false; | ||
stdin.removeListener('data', this.handleInput); | ||
@@ -180,0 +184,0 @@ setRawMode(false); |
{ | ||
"name": "ink-text-input", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Text input component for Ink", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11448
217