mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 17:18:32 +02:00
Remove debug console logs from Input component
This commit is contained in:
@@ -401,7 +401,6 @@ function EncryptionInput({
|
|||||||
setState({ fieldType: 'encrypted', security, value, obscured: true, error: null });
|
setState({ fieldType: 'encrypted', security, value, obscured: true, error: null });
|
||||||
// We're calling this here because we want the input to be fully initialized so the caller
|
// We're calling this here because we want the input to be fully initialized so the caller
|
||||||
// can do stuff like change the selection.
|
// can do stuff like change the selection.
|
||||||
console.log('INIT FIRST');
|
|
||||||
setRef?.(inputRef.current);
|
setRef?.(inputRef.current);
|
||||||
},
|
},
|
||||||
onError: (value) => {
|
onError: (value) => {
|
||||||
@@ -415,12 +414,10 @@ function EncryptionInput({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else if (isEncryptionEnabled && !defaultValue) {
|
} else if (isEncryptionEnabled && !defaultValue) {
|
||||||
console.log('INIT SECOND');
|
|
||||||
// Default to encrypted field for new encrypted inputs
|
// Default to encrypted field for new encrypted inputs
|
||||||
setState({ fieldType: 'encrypted', security, value: '', obscured: true, error: null });
|
setState({ fieldType: 'encrypted', security, value: '', obscured: true, error: null });
|
||||||
requestAnimationFrame(() => setRef?.(inputRef.current));
|
requestAnimationFrame(() => setRef?.(inputRef.current));
|
||||||
} else if (isEncryptionEnabled) {
|
} else if (isEncryptionEnabled) {
|
||||||
console.log('INIT THIRD');
|
|
||||||
// Don't obscure plain text when encryption is enabled
|
// Don't obscure plain text when encryption is enabled
|
||||||
setState({
|
setState({
|
||||||
fieldType: 'text',
|
fieldType: 'text',
|
||||||
@@ -431,7 +428,6 @@ function EncryptionInput({
|
|||||||
});
|
});
|
||||||
requestAnimationFrame(() => setRef?.(inputRef.current));
|
requestAnimationFrame(() => setRef?.(inputRef.current));
|
||||||
} else {
|
} else {
|
||||||
console.log('INIT FOURTH');
|
|
||||||
// Don't obscure plain text when encryption is disabled
|
// Don't obscure plain text when encryption is disabled
|
||||||
setState({
|
setState({
|
||||||
fieldType: 'text',
|
fieldType: 'text',
|
||||||
|
|||||||
Reference in New Issue
Block a user