@visns-studio/visns-components 3.8.9 → 3.8.11

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.
@@ -928,17 +928,28 @@ function Field({
928
928
  cursor: 'pointer',
929
929
  }}
930
930
  >
931
- {inputValue.filename ? 'Replace File...' : 'Choose file...'}
931
+ {console.info(inputValue)}
932
+ {inputValue?.filename
933
+ ? 'Replace File...'
934
+ : 'Choose file...'}
932
935
  </label>
933
936
  <input
934
937
  id={settings.id}
938
+ data-name={settings.id}
939
+ name={settings.id}
935
940
  type="file"
936
941
  className={inputClass[settings.id]} // Ensure inputClass is defined or passed
937
942
  onChange={onChange}
938
943
  style={{ display: 'none' }}
939
944
  />
940
945
  <span style={{ marginLeft: '10px' }}>
941
- {inputValue.filename}
946
+ {inputValue
947
+ ? inputValue.filename
948
+ ? inputValue.filename
949
+ : inputValue.name
950
+ ? inputValue.name
951
+ : ''
952
+ : ''}
942
953
  </span>
943
954
  {inputValue &&
944
955
  inputValue.key &&
@@ -65,6 +65,7 @@ function Form({
65
65
  }
66
66
 
67
67
  if (e.target.files) {
68
+ console.info(e.target);
68
69
  setFormData((prevState) => ({
69
70
  ...prevState,
70
71
  [id]:
package/package.json CHANGED
@@ -54,7 +54,7 @@
54
54
  "react-dom": "^17.0.1"
55
55
  },
56
56
  "name": "@visns-studio/visns-components",
57
- "version": "3.8.9",
57
+ "version": "3.8.11",
58
58
  "description": "Various packages to assist in the development of our Custom Applications.",
59
59
  "main": "index.js",
60
60
  "scripts": {