mirror of
https://github.com/poanse/obsidian-taskmap.git
synced 2026-07-22 06:05:58 +00:00
obsidian warnings fix
This commit is contained in:
parent
3adda62610
commit
a3ed77cd9c
3 changed files with 3 additions and 5 deletions
|
|
@ -16,7 +16,7 @@ export class DraggingManager {
|
|||
|
||||
public onPointerDown = (e: PointerEvent) => {
|
||||
console.debug("DraggingManager pointerDown");
|
||||
this.mouseDown = e.button as MouseDown;
|
||||
this.mouseDown = e.button;
|
||||
if (this.mouseCodes.includes(this.mouseDown)) {
|
||||
this.startX = e.clientX;
|
||||
this.startY = e.clientY;
|
||||
|
|
|
|||
|
|
@ -9,9 +9,7 @@ export class FolderSuggest extends AbstractInputSuggest<TFolder> {
|
|||
textInputEl: HTMLInputElement;
|
||||
|
||||
constructor(app: App, textInputEl: HTMLInputElement) {
|
||||
// Cast the textarea to HTMLInputElement to satisfy TypeScript.
|
||||
// This is a dirty hack, but runtime behavior is compatible
|
||||
super(app, textInputEl as unknown as HTMLInputElement);
|
||||
super(app, textInputEl);
|
||||
this.textInputEl = textInputEl;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ export const classStringFromStatusCode = (code: StatusCode) => {
|
|||
};
|
||||
|
||||
export const toIconCode = (s: StatusCode) => {
|
||||
return (s + IconCode.STATUS_DRAFT) as IconCode;
|
||||
return s + IconCode.STATUS_DRAFT;
|
||||
};
|
||||
|
||||
export const toStatusCode = (s: IconCode) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue