@apia/components 4.0.80 → 4.0.81
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.d.ts +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -149,7 +149,7 @@ class AccordionHandler {
|
|
|
149
149
|
udpateItem(itemId, updater) {
|
|
150
150
|
const newProps = updater instanceof Function ? updater(this.itemsState[itemId]) : updater;
|
|
151
151
|
Object.assign(this.itemsState[itemId], newProps);
|
|
152
|
-
this.itemsStateListeners[itemId]
|
|
152
|
+
this.itemsStateListeners?.[itemId]?.forEach(
|
|
153
153
|
(current) => current(this.itemsState[itemId])
|
|
154
154
|
);
|
|
155
155
|
}
|
|
@@ -3642,7 +3642,10 @@ const Autocomplete = (props) => {
|
|
|
3642
3642
|
if (!shallowEqual$1(prevProps.current, props.properties) && handler?.state) {
|
|
3643
3643
|
Object.assign(handler.state, props.properties);
|
|
3644
3644
|
if (prevProps.current?.value !== props.properties?.value && props.properties?.value !== void 0) {
|
|
3645
|
-
handler.setValue(props.properties.value, {
|
|
3645
|
+
handler.setValue(props.properties.value, {
|
|
3646
|
+
fireOnChange: false,
|
|
3647
|
+
force: prevProps.current?.value === void 0
|
|
3648
|
+
});
|
|
3646
3649
|
}
|
|
3647
3650
|
}
|
|
3648
3651
|
if (!handler) {
|
|
@@ -6330,7 +6333,9 @@ function useListboxAutofocus(storeId, getState) {
|
|
|
6330
6333
|
);
|
|
6331
6334
|
if (focusedRow) {
|
|
6332
6335
|
const scrollContainer = findScrollContainer(focusedRow);
|
|
6336
|
+
console.log(focusedRow, scrollContainer);
|
|
6333
6337
|
if (scrollContainer && scrollContainer.classList.contains("listbox")) {
|
|
6338
|
+
console.log("scroll container into view");
|
|
6334
6339
|
scrollContainer.scrollIntoView({
|
|
6335
6340
|
behavior: "auto",
|
|
6336
6341
|
block: "nearest",
|
|
@@ -6341,6 +6346,7 @@ function useListboxAutofocus(storeId, getState) {
|
|
|
6341
6346
|
if (elRect.top - contRect.top < elRect.height)
|
|
6342
6347
|
scrollContainer.scrollTop -= elRect.height;
|
|
6343
6348
|
}
|
|
6349
|
+
console.log("scroll focusedRow into view");
|
|
6344
6350
|
focusedRow.scrollIntoView({
|
|
6345
6351
|
behavior: "auto",
|
|
6346
6352
|
block: "nearest",
|