@v-c/table 1.0.6 → 1.0.7
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/Table.js +7 -0
- package/package.json +1 -1
package/dist/Table.js
CHANGED
|
@@ -195,6 +195,13 @@ var ImmutableTable = /* @__PURE__ */ defineComponent((props, { attrs, slots, exp
|
|
|
195
195
|
target(scrollLeft);
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
|
+
if ("scrollLeft" in target && target.scrollLeft !== scrollLeft) {
|
|
199
|
+
target.scrollLeft = scrollLeft;
|
|
200
|
+
if (target.scrollLeft !== scrollLeft) setTimeout(() => {
|
|
201
|
+
target.scrollLeft = scrollLeft;
|
|
202
|
+
}, 0);
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
198
205
|
const element = target.nativeElement ? getDOM(target.nativeElement) : getDOM(target);
|
|
199
206
|
if (element && element.scrollLeft !== scrollLeft) {
|
|
200
207
|
element.scrollLeft = scrollLeft;
|