@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.
Files changed (2) hide show
  1. package/dist/Table.js +7 -0
  2. 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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@v-c/table",
3
3
  "type": "module",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",