From e79e53d78546501fc855b76a84f000289ed7433a Mon Sep 17 00:00:00 2001 From: bob Date: Mon, 4 Feb 2019 10:44:30 -0500 Subject: split out common code into CollectionViewBase. organized a few other things, too. --- src/views/nodes/FieldTextBox.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/views/nodes/FieldTextBox.tsx') diff --git a/src/views/nodes/FieldTextBox.tsx b/src/views/nodes/FieldTextBox.tsx index 1e03bf0f9..188b39a17 100644 --- a/src/views/nodes/FieldTextBox.tsx +++ b/src/views/nodes/FieldTextBox.tsx @@ -9,10 +9,10 @@ import { Document } from "../../fields/Document"; import { Opt } from "../../fields/Field"; import { Key } from "../../fields/Key"; import { SelectionManager } from "../../util/SelectionManager"; -import { DocumentView, DocumentFieldViewProps } from "./DocumentView"; import "./FieldTextBox.scss"; import React = require("react") import { RichTextField } from "../../fields/RichTextField"; +import { FieldViewProps } from "./FieldView"; // FieldTextBox: Displays an editable plain text node that maps to a specified Key of a Document @@ -31,14 +31,14 @@ import { RichTextField } from "../../fields/RichTextField"; // specified Key and assigns it to an HTML input node. When changes are made tot his node, // this will edit the document and assign the new value to that field. // -export class FieldTextBox extends React.Component { +export class FieldTextBox extends React.Component { - public static LayoutString() { return ""; } + public static LayoutString() { return ""; } private _ref: React.RefObject; private _editorView: Opt; private _reactionDisposer: Opt; - constructor(props: DocumentFieldViewProps) { + constructor(props: FieldViewProps) { super(props); this._ref = React.createRef(); @@ -110,7 +110,7 @@ export class FieldTextBox extends React.Component { } onPointerDown = (e: React.PointerEvent): void => { let me = this; - if (e.buttons === 1 && SelectionManager.IsSelected(me.props.containingDocumentView)) { + if (e.buttons === 1 && SelectionManager.IsSelected(me.props.documentViewContainer)) { e.stopPropagation(); } } -- cgit v1.2.3-70-g09d2