Clean up Element#scrollIntoViewIfNeeded
type
This commit is contained in:
parent
033b4830d1
commit
e4b4a0cd1e
2 changed files with 8 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2020-2021 Signal Messenger, LLC
|
||||
// Copyright 2020-2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import _ from 'lodash';
|
||||
|
@ -27,15 +27,6 @@ export type MentionCompletionOptions = {
|
|||
theme: ThemeType;
|
||||
};
|
||||
|
||||
declare global {
|
||||
// We want to extend `HTMLElement`'s properties, so we need an interface.
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
interface HTMLElement {
|
||||
// Webkit-specific
|
||||
scrollIntoViewIfNeeded: (bringToCenter: boolean) => void;
|
||||
}
|
||||
}
|
||||
|
||||
const MENTION_REGEX = /(?:^|\W)@([-+\w]*)$/;
|
||||
|
||||
export class MentionCompletion {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue