optimized-react-component-library-xyz123 0.18.4 → 0.18.6

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.mjs CHANGED
@@ -545,7 +545,6 @@ var ExploreFiles = ({
545
545
  /* @__PURE__ */ jsx8(
546
546
  "button",
547
547
  {
548
- id: `question-${questionObject.id}`,
549
548
  ref: buttonInputRef,
550
549
  onClick: handleKeyOrClick,
551
550
  className: clsx(
@@ -934,7 +933,7 @@ var AddFiles = ({
934
933
  setErrorMessageAddingFile([]);
935
934
  };
936
935
  return /* @__PURE__ */ jsxs9(Fragment11, { children: [
937
- !showPreview && visible && /* @__PURE__ */ jsx11("div", { className: "root-question addFile-question-container", children: /* @__PURE__ */ jsxs9("div", { role: "group", children: [
936
+ !showPreview && visible && /* @__PURE__ */ jsx11("div", { className: "root-question addFile-question-container", id: `question-${questionObject.id}`, children: /* @__PURE__ */ jsxs9("div", { role: "group", children: [
938
937
  questionObject.aboutText && /* @__PURE__ */ jsxs9(
939
938
  "p",
940
939
  {
@@ -945,7 +944,7 @@ var AddFiles = ({
945
944
  ),
946
945
  children: [
947
946
  questionObject.aboutText,
948
- questionObject.isQuestionMandatory && /* @__PURE__ */ jsxs9("span", { className: "pts-root-mandatoryAsterisk", "aria-hidden": "true", children: [
947
+ questionObject.isQuestionMandatory && /* @__PURE__ */ jsxs9("span", { className: "pts-root-mandatoryAsterisk", "aria-label": "Obligatorisk fr\xE5ga", children: [
949
948
  " ",
950
949
  "*"
951
950
  ] })
@@ -2957,7 +2956,7 @@ var ValidationErrorSummaryList = ({
2957
2956
  if (container) {
2958
2957
  container.scrollIntoView({ behavior: "smooth", block: "center" });
2959
2958
  setTimeout(() => {
2960
- const input = container.querySelector("input, textarea, select");
2959
+ const input = container.querySelector("input, textarea, select, button");
2961
2960
  if (input) {
2962
2961
  input.focus();
2963
2962
  }