diff options
author | bobzel <zzzman@gmail.com> | 2021-03-16 21:04:01 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-16 21:04:01 -0400 |
commit | d5be520f31d7afe108071734fdc47a22d80f8f45 (patch) | |
tree | 649edd101fb2b544be799efa66ef82e6ff7096dd /src | |
parent | 04225e5248ac46c4f9fdc698ec1526b53fd02164 (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/PropertiesButtons.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/PropertiesButtons.tsx b/src/client/views/PropertiesButtons.tsx index 15214b692..fbcd55c47 100644 --- a/src/client/views/PropertiesButtons.tsx +++ b/src/client/views/PropertiesButtons.tsx @@ -37,7 +37,8 @@ export class PropertiesButtons extends React.Component<{}, {}> { <Tooltip title={<div className={`dash-tooltip`}>{tooltip(targetDoc?.[property])} </div>} placement="top"> <div> <div className={`propertiesButtons-linkButton-empty toggle-${StrCast(targetDoc[property]).includes(":hover") ? "hover" : targetDoc[property] ? "on" : "off"}`} - onPointerDown={undoBatch(() => { + onPointerDown={e => e.stopPropagation()} + onClick={undoBatch(() => { if (SelectionManager.Views().length) { SelectionManager.Views().forEach(dv => (onClick ?? onPropToggle)(dv, dv.rootDoc, property)); } else if (targetDoc) (onClick ?? onPropToggle)(undefined, targetDoc, property); |