fix: color pickers not opening on mobile (#3676)

This commit is contained in:
David Luzar 2021-05-30 12:05:07 +02:00 committed by GitHub
parent c819b653bf
commit 035c7affff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 83 additions and 13 deletions

View file

@ -126,9 +126,9 @@ export const actionChangeStrokeColor = register({
appState.currentItemStrokeColor,
)}
onChange={(color) => updateData({ currentItemStrokeColor: color })}
isActive={appState.openMenu === "strokeColorPicker"}
isActive={appState.openPopup === "strokeColorPicker"}
setActive={(active) =>
updateData({ openMenu: active ? "strokeColorPicker" : null })
updateData({ openPopup: active ? "strokeColorPicker" : null })
}
/>
</>
@ -166,9 +166,9 @@ export const actionChangeBackgroundColor = register({
appState.currentItemBackgroundColor,
)}
onChange={(color) => updateData({ currentItemBackgroundColor: color })}
isActive={appState.openMenu === "backgroundColorPicker"}
isActive={appState.openPopup === "backgroundColorPicker"}
setActive={(active) =>
updateData({ openMenu: active ? "backgroundColorPicker" : null })
updateData({ openPopup: active ? "backgroundColorPicker" : null })
}
/>
</>