@thecb/components 6.1.0-beta.2 → 6.1.0-beta.3

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.esm.js CHANGED
@@ -43654,8 +43654,10 @@ var useFocusInvalidInput = function useFocusInvalidInput() {
43654
43654
  // typically set to "true" on attempted form submission, if errors exist
43655
43655
  useEffect$1(function () {
43656
43656
  if (showErrors) {
43657
+ var _inputsWithErrors$;
43658
+
43657
43659
  var inputsWithErrors = document.querySelectorAll("input[aria-invalid=true]");
43658
- console.log("inputs with errors...", inputsWithErrors);
43660
+ inputsWithErrors === null || inputsWithErrors === void 0 ? void 0 : (_inputsWithErrors$ = inputsWithErrors[0]) === null || _inputsWithErrors$ === void 0 ? void 0 : _inputsWithErrors$.focus();
43659
43661
  }
43660
43662
  }, [showErrors]);
43661
43663
  };