st.length) { tabList[tabList.length - 1].focus(); e.preventDefault(); } } break; } } render() { const attr = { role: "menu", ref: this.setWrapperRef, onKeyDown: this.onKeyDown, onMouseOver: this.onMouseOverOrFocus, onMouseOut: this.onMouseOutOrBlur, onFocus: this.onMouseOverOrFocus, onBlur: this.onMouseOutOrBlur, className: "menu-standard-padding", }; if (this.props.id) { attr.id = this.props.id; } // Add padding for checkbox image if necessary. let hasCheckbox = false; Children.forEach(this.props.children, (child, i) => { if (child == null || typeof child == "undefined") { console.warn("MenuList children at index", i, "is", child); return; } if (typeof child?.props?.checked !== "undefined") { hasCheckbox = true; } }); if (hasCheckbox) { attr.className = "checkbox-container menu-standard-padding"; } return div(attr, this.props.children); } } module.exports = MenuList; PK