diff options
author | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-03-17 14:23:08 -0400 |
---|---|---|
committer | alyssaf16 <alyssa_feinberg@brown.edu> | 2024-03-17 14:23:08 -0400 |
commit | fa2b150fcccef8df17a4e199767dc6d643a9c16c (patch) | |
tree | ccd70ff33c13671a2133e7fbdcb73edf136c9a23 /src/client/views/nodes/ComparisonBox.tsx | |
parent | 1e5d21d85119335ceba5d43075fb9eb52c1ef3f5 (diff) |
menu working
Diffstat (limited to 'src/client/views/nodes/ComparisonBox.tsx')
-rw-r--r-- | src/client/views/nodes/ComparisonBox.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx index 97b9a8744..9caa216a5 100644 --- a/src/client/views/nodes/ComparisonBox.tsx +++ b/src/client/views/nodes/ComparisonBox.tsx @@ -189,7 +189,11 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent<FieldViewProps>() className="formattedTextBox-alternateButton" onPointerDown={e => setupMoveUpEvents(e.target, e, returnFalse, emptyFunction, e => { - this.flipFlashcard(); + if (!this.layoutDoc[`_${this._props.fieldKey}_revealOp`] || this.layoutDoc[`_${this._props.fieldKey}_revealOp`] == 'flip') { + this.layoutDoc[`_${this._props.fieldKey}_revealOp`] = 'flip'; + console.log(this.layoutDoc[`_${this._props.fieldKey}_revealOp`]); + this.flipFlashcard(); + } }) } style={{ |