Skip to content

refactor: remove any type from ts4.4 upgrade regarding #23671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/cdk/drag-drop/drag-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {DropListRefInternal as DropListRef} from './drop-list-ref';
import {DragDropRegistry} from './drag-drop-registry';
import {
combineTransforms,
DragCSSStyleDeclaration,
extendStyles,
toggleNativeDragInteractions,
toggleVisibility,
Expand Down Expand Up @@ -756,7 +757,8 @@ export class DragRef<T = any> {
this._toggleNativeDragInteractions();

if (this._handles) {
(this._rootElement.style as any).webkitTapHighlightColor = this._rootElementTapHighlight;
(this._rootElement.style as DragCSSStyleDeclaration).webkitTapHighlightColor =
this._rootElementTapHighlight;
}

if (!this._hasStartedDragging) {
Expand Down Expand Up @@ -884,7 +886,7 @@ export class DragRef<T = any> {
// otherwise iOS will still add it, even though all the drag interactions on the handle
// are disabled.
if (this._handles.length) {
const rootStyles = rootElement.style as any;
const rootStyles = rootElement.style as DragCSSStyleDeclaration;
this._rootElementTapHighlight = rootStyles.webkitTapHighlightColor || '';
rootStyles.webkitTapHighlightColor = 'transparent';
}
Expand Down
1 change: 1 addition & 0 deletions src/cdk/drag-drop/drag-styling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
export interface DragCSSStyleDeclaration extends CSSStyleDeclaration {
msScrollSnapType: string;
scrollSnapType: string;
webkitTapHighlightColor: string;
}

/**
Expand Down