"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/common/src/util/dom-event.ts" between
fullcalendar-5.9.0.tar.gz and fullcalendar-5.10.0.tar.gz

About: FullCalendar is a full-sized drag & drop JavaScript event calendar.

dom-event.ts  (fullcalendar-5.9.0):dom-event.ts  (fullcalendar-5.10.0)
skipping to change at line 89 skipping to change at line 89
callback(ev) callback(ev)
transitionEventNames.forEach((eventName) => { transitionEventNames.forEach((eventName) => {
el.removeEventListener(eventName, realCallback) el.removeEventListener(eventName, realCallback)
}) })
} }
transitionEventNames.forEach((eventName) => { transitionEventNames.forEach((eventName) => {
el.addEventListener(eventName, realCallback) // cross-browser way to determi ne when the transition finishes el.addEventListener(eventName, realCallback) // cross-browser way to determi ne when the transition finishes
}) })
} }
// ARIA workarounds
// -----------------------------------------------------------------------------
-----------------------------------
export function createAriaClickAttrs(handler: ((ev: UIEvent) => void)) {
return {
onClick: handler,
...createAriaKeyboardAttrs(handler),
}
}
export function createAriaKeyboardAttrs(handler: ((ev: UIEvent) => void)) {
return {
tabIndex: 0,
onKeyDown(ev: KeyboardEvent) {
if (ev.key === 'Enter' || ev.key === ' ') {
handler(ev)
ev.preventDefault() // if space, don't scroll down page
}
},
}
}
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)