dhre-component-lib 0.8.6 → 0.8.7
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/dist/components/TextArea/TextArea.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21911,10 +21911,10 @@ var css$8 = ".textArea {\n min-width: 70%;\n width: 100%;\n height: 8.875rem;
|
|
|
21911
21911
|
n(css$8,{});
|
|
21912
21912
|
|
|
21913
21913
|
function TextArea(props) {
|
|
21914
|
-
const { value, onChange, requiredLimit, placeholder, charText, property, isShortTextBox } = props;
|
|
21914
|
+
const { shouldCheckRegex, value, onChange, requiredLimit, placeholder, charText, property, isShortTextBox } = props;
|
|
21915
21915
|
const [showLabelOnBorder, setShowLabelOnBorder] = React$1.useState(false);
|
|
21916
21916
|
const checkSpecialChar = (e) => {
|
|
21917
|
-
if (!/[0-9a-zA-Z ]/.test(e.key)) {
|
|
21917
|
+
if (shouldCheckRegex && !/[0-9a-zA-Z ]/.test(e.key)) {
|
|
21918
21918
|
e.preventDefault();
|
|
21919
21919
|
}
|
|
21920
21920
|
console.log('textAraea');
|