mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Remove incorrect types
This commit is contained in:
parent
cf75f6bfe0
commit
ee68dc3f1c
1 changed files with 1 additions and 1 deletions
|
@ -2088,7 +2088,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
swapPreviewOnAlt: true,
|
||||
colorPickerType:
|
||||
type === "stroke" ? "elementStroke" : "elementBackground",
|
||||
onSelect: (color: string, event: KeyboardEvent) => {
|
||||
onSelect: (color, event) => {
|
||||
const shouldUpdateStrokeColor =
|
||||
(type === "background" && event.altKey) ||
|
||||
(type === "stroke" && !event.altKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue