mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-08 12:07:06 +00:00
Implemented few changes
This commit is contained in:
@@ -16,7 +16,7 @@ export interface NotebookComponentAdapterOptions {
|
|||||||
|
|
||||||
export class NotebookComponentAdapter extends NotebookComponentBootstrapper implements ReactAdapter {
|
export class NotebookComponentAdapter extends NotebookComponentBootstrapper implements ReactAdapter {
|
||||||
private onUpdateKernelInfo: () => void;
|
private onUpdateKernelInfo: () => void;
|
||||||
public parameters: undefined;
|
public parameters: unknown;
|
||||||
|
|
||||||
constructor(options: NotebookComponentAdapterOptions) {
|
constructor(options: NotebookComponentAdapterOptions) {
|
||||||
super({
|
super({
|
||||||
|
|||||||
@@ -35,8 +35,7 @@ export class HijackScroll extends React.Component<Props> {
|
|||||||
) {
|
) {
|
||||||
if (this.el && "scrollIntoViewIfNeeded" in this.el) {
|
if (this.el && "scrollIntoViewIfNeeded" in this.el) {
|
||||||
// This is only valid in Chrome, WebKit
|
// This is only valid in Chrome, WebKit
|
||||||
//eslint-disable-next-line
|
((this.el as unknown) as HijackScroll).scrollIntoViewIfNeeded();
|
||||||
(this.el as any).scrollIntoViewIfNeeded();
|
|
||||||
} else if (this.el) {
|
} else if (this.el) {
|
||||||
// Make a best guess effort for older platforms
|
// Make a best guess effort for older platforms
|
||||||
this.el.scrollIntoView();
|
this.el.scrollIntoView();
|
||||||
|
|||||||
Reference in New Issue
Block a user