@engagebay/engagebay-form-module 1.0.2-beta.3 → 1.0.2-beta.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engagebay/engagebay-form-module",
3
- "version": "1.0.2-beta.3",
3
+ "version": "1.0.2-beta.5",
4
4
  "description": "Provide base form components to reacho",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -31,7 +31,7 @@ const DatePicker: React.FC<FormFieldComponentPropSchema> = (
31
31
  }, [props.fieldConfig.forceUpdate]);
32
32
 
33
33
  let registerOptions: RegisterOptions = registerFormField(props.fieldConfig);
34
- registerOptions.valueAsDate = true;
34
+ //registerOptions.valueAsDate = true;
35
35
  let hookProps = formContext.register(props.fieldConfig.name, registerOptions);
36
36
 
37
37
  function getInput() {
@@ -58,8 +58,6 @@ const Typeahead: React.FC<FormFieldComponentPropSchema> = (
58
58
  let url = props.fieldConfig.fetchUrl;
59
59
  if (_query) {
60
60
  url = url.includes("?") ? url + "&q=" + _query : url + "?q=" + _query;
61
- } else {
62
- url = url.includes("?") ? url + "&q=" + null : url + "?q=" + null;
63
61
  }
64
62
 
65
63
  let response = await (props.fieldConfig.disableHeaderInFetch
@@ -99,7 +97,9 @@ const Typeahead: React.FC<FormFieldComponentPropSchema> = (
99
97
  let url = props.fieldConfig.fetchUrl;
100
98
 
101
99
  if (value)
102
- url = url.includes("?") ? url + "&q=" + value : url + "?q=" + value;
100
+ url = url.includes("?")
101
+ ? url + "&values=" + value
102
+ : url + "?values=" + value;
103
103
 
104
104
  let response = await (props.fieldConfig.disableHeaderInFetch
105
105
  ? axios.get(url)
@@ -110,7 +110,9 @@ const TypeaheadMultiSelect: React.FC<FormFieldComponentPropSchema> = (
110
110
 
111
111
  let url = props.fieldConfig.fetchUrl;
112
112
 
113
- url = url = url.includes("?") ? url + "&q=" + value : url + "?q=" + value;
113
+ url = url.includes("?")
114
+ ? url + "&values=" + value
115
+ : url + "?values=" + value;
114
116
 
115
117
  let response = await (props.fieldConfig.disableHeaderInFetch
116
118
  ? axios.get(url)