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