[cm6] fix toolbar overflow button calculation (#13669)

GitOrigin-RevId: 11380a5661067a285e0c0de82a37e085fc395f03
This commit is contained in:
Domagoj Kriskovic 2023-07-04 11:41:23 +02:00 committed by Copybot
parent 7202d7413e
commit 39bd64b0a4

View file

@ -53,7 +53,7 @@ const Toolbar = memo(function Toolbar() {
const buildOverflow = useCallback(
(element: Element) => {
setOverflowOpen(false)
setOverflowed(false)
setOverflowed(true)
if (overflowBeforeRef.current) {
overflowedItemsRef.current = new Set()