@dartech/arsenal-ui 1.3.67 → 1.3.68

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/index.js +2 -7
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1218,7 +1218,8 @@ const JsonView = /*#__PURE__*/forwardRef(({
1218
1218
  const [loading, setLoading] = useState(true);
1219
1219
  const onCreateEditor = useCallback(view => {
1220
1220
  const onScroll = e => {
1221
- if (e.target.scrollTop === view.scrollDOM.scrollHeight - view.scrollDOM.offsetHeight) {
1221
+ console.log();
1222
+ if (view.scrollDOM.scrollHeight - view.scrollDOM.offsetHeight - e.target.scrollTop < 10) {
1222
1223
  setTimeout(() => view.scrollDOM.scrollTo(0, 0), 200);
1223
1224
  }
1224
1225
  if (e.target.scrollTop === 0) {
@@ -1274,12 +1275,6 @@ const JsonModalView = ({
1274
1275
  jsonViewProps
1275
1276
  }) => {
1276
1277
  const editorRef = useRef();
1277
- // useEffect(() => {
1278
- // if (editorRef.current) {
1279
- // console.log(editorRef.current);
1280
- // editorRef.current.editor.scrollTop = 1000;
1281
- // }
1282
- // }, [open, editorRef]);
1283
1278
  return jsxs(Dialog, Object.assign({
1284
1279
  disableEscapeKeyDown: true,
1285
1280
  open: open,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.3.67",
3
+ "version": "1.3.68",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"