deepsource-autofix-76c6eb20
Dan Gowans 2024-06-27 10:22:54 -04:00
parent 4e07584a79
commit 81311d971e
4 changed files with 172 additions and 171 deletions

View File

@ -105,7 +105,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
}); });
// Disable html scrolling when calendar is open // Disable html scrolling when calendar is open
cal.on('show', () => { cal.on('show', () => {
document.querySelector('html').classList.add('is-clipped'); var _a;
(_a = document.querySelector('html')) === null || _a === void 0 ? void 0 : _a.classList.add('is-clipped');
}); });
// Reenable scrolling, if a modal window is not open // Reenable scrolling, if a modal window is not open
cal.on('hide', () => { cal.on('hide', () => {

View File

@ -173,7 +173,7 @@ declare const exports: Record<string, unknown> & {
// Disable html scrolling when calendar is open // Disable html scrolling when calendar is open
cal.on('show', () => { cal.on('show', () => {
document.querySelector('html')!.classList.add('is-clipped') document.querySelector('html')?.classList.add('is-clipped')
}) })
// Reenable scrolling, if a modal window is not open // Reenable scrolling, if a modal window is not open
@ -184,7 +184,7 @@ declare const exports: Record<string, unknown> & {
// Get the datepicker container element // Get the datepicker container element
const datepickerElement = containerElement.querySelector( const datepickerElement = containerElement.querySelector(
`#${cal._id as string}` `#${cal._id as string}`
)! ) as HTMLElement
// Override the previous and next month button styles // Override the previous and next month button styles
const datePickerNavButtonElements = datepickerElement.querySelectorAll( const datePickerNavButtonElements = datepickerElement.querySelectorAll(

File diff suppressed because one or more lines are too long