@rhc-shared-components/form-multi-select-component 2.0.0 → 2.0.1

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/index.js CHANGED
@@ -177,6 +177,11 @@ var FormMultiSelectInput = function FormMultiSelectInput(_ref) {
177
177
  setActiveItemId = _useState6[1];
178
178
  var textInputRef = React.useRef(null);
179
179
  var NO_RESULTS = 'no results';
180
+ React.useEffect(function () {
181
+ if (textInputRef != null && textInputRef.current && isRequired !== undefined) {
182
+ textInputRef.current.setAttribute('aria-required', String(isRequired));
183
+ }
184
+ }, [isRequired, textInputRef.current]);
180
185
  React.useEffect(function () {
181
186
  var newSelectOptions = selectMenuOptions;
182
187
  // Filter menu items based on the text input value when one exists
@@ -138,6 +138,11 @@ const FormMultiSelectInput = _ref => {
138
138
  const [activeItemId, setActiveItemId] = useState(null);
139
139
  const textInputRef = useRef(null);
140
140
  const NO_RESULTS = 'no results';
141
+ useEffect(() => {
142
+ if (textInputRef != null && textInputRef.current && isRequired !== undefined) {
143
+ textInputRef.current.setAttribute('aria-required', String(isRequired));
144
+ }
145
+ }, [isRequired, textInputRef.current]);
141
146
  useEffect(() => {
142
147
  let newSelectOptions = selectMenuOptions;
143
148
  // Filter menu items based on the text input value when one exists
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhc-shared-components/form-multi-select-component",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "project description",
5
5
  "author": "shkale",
6
6
  "license": "MIT",
@@ -64,9 +64,7 @@
64
64
  "typescript": "~5.7.2"
65
65
  },
66
66
  "dependencies": {
67
- "@rhc-shared-components/form-group-container": "^3.0.1",
68
- "@types/lodash": "^4.14.177",
69
- "lodash": "^4.17.21"
67
+ "@rhc-shared-components/form-group-container": "^3.0.1"
70
68
  },
71
69
  "files": [
72
70
  "dist"