fix: incorrectly selecting linear elements on creation while tool-locked (#5785)

This commit is contained in:
David Luzar 2022-11-02 14:38:58 +01:00 committed by GitHub
parent 2e5c798c71
commit e8fba43cf6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 7 deletions

View file

@ -237,7 +237,7 @@ export const ShapesSwitcher = ({
keyBindingLabel={`${numberKey}`}
aria-label={capitalizeString(label)}
aria-keyshortcuts={shortcut}
data-testid={value}
data-testid={`toolbar-${value}`}
onPointerDown={({ pointerType }) => {
if (!appState.penDetected && pointerType === "pen") {
setAppState({