@gechiui/dom
Version:
DOM utilities module for GeChiUI.
15 lines (14 loc) • 468 B
JavaScript
/**
* Internal dependencies
*/
import placeCaretAtEdge from './place-caret-at-edge';
/**
* Places the caret at start or end of a given element.
*
* @param {HTMLElement} container Focusable element.
* @param {boolean} isReverse True for end, false for start.
*/
export default function placeCaretAtHorizontalEdge(container, isReverse) {
return placeCaretAtEdge(container, isReverse, undefined);
}
//# sourceMappingURL=place-caret-at-horizontal-edge.js.map