pds-dev-kit-web 2.2.28 → 2.2.30

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.
@@ -132,6 +132,9 @@ function Dropdown(_a) {
132
132
  };
133
133
  var handleClickOption = function (option) {
134
134
  setIsFocused(false);
135
+ if (option.state === 'disabled') {
136
+ return;
137
+ }
135
138
  if (value === undefined) {
136
139
  setSelectedValue(option);
137
140
  }
@@ -132,6 +132,9 @@ function Dropdown(_a) {
132
132
  };
133
133
  var handleClickOption = function (option) {
134
134
  setIsFocused(false);
135
+ if (option.state === 'disabled') {
136
+ return;
137
+ }
135
138
  if (value === undefined) {
136
139
  setSelectedValue(option);
137
140
  }
@@ -40,12 +40,14 @@ function SectionBox(_a) {
40
40
  }
41
41
  }, 150);
42
42
  (0, react_1.useEffect)(function () {
43
- var _a;
44
43
  if (!sectionRef) {
45
44
  return;
46
45
  }
47
46
  if (scrollIntoThisSection) {
48
- (_a = sectionRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth' });
47
+ setTimeout(function () {
48
+ var _a;
49
+ (_a = sectionRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth', block: 'start' });
50
+ }, 200);
49
51
  }
50
52
  }, [scrollIntoThisSection]);
51
53
  (0, react_1.useEffect)(function () {