MCPcopy
hub / github.com/flatpickr/flatpickr / timeIncrement

Function timeIncrement

src/index.ts:545–549  ·  view source on GitHub ↗

* The up/down arrow handler for time inputs * @param {Event} e the click event

(e: KeyboardEvent | MouseEvent)

Source from the content-addressed store, hash-verified

543 * @param {Event} e the click event
544 */
545 function timeIncrement(e: KeyboardEvent | MouseEvent) {
546 const eventTarget = getEventTarget(e) as Element;
547 if (~eventTarget.className.indexOf("arrow"))
548 incrementNumInput(e, eventTarget.classList.contains("arrowUp") ? 1 : -1);
549 }
550
551 /**
552 * Increments/decrements the value of input associ-

Callers

nothing calls this directly

Calls 2

getEventTargetFunction · 0.90
incrementNumInputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…