From 6a8ac04f970a5fa94c29aecef2f90058b6ec98ed Mon Sep 17 00:00:00 2001 From: Alex Terentiev Date: Fri, 3 Aug 2018 17:16:23 -0700 Subject: [PATCH] Fix of bug 103 --- .../fields/fieldNameRenderer/FieldNameRenderer.tsx | 10 +++++----- src/extensions/ootbFields/OotbFieldsFieldCustomizer.ts | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/controls/fields/fieldNameRenderer/FieldNameRenderer.tsx b/src/controls/fields/fieldNameRenderer/FieldNameRenderer.tsx index 84fc9f905..2f91b1f52 100644 --- a/src/controls/fields/fieldNameRenderer/FieldNameRenderer.tsx +++ b/src/controls/fields/fieldNameRenderer/FieldNameRenderer.tsx @@ -72,7 +72,7 @@ export class FieldNameRenderer extends React.Component : null; + let signal: JSX.Element = this.props.isNew ? : null; let value: JSX.Element; if (isLink) { @@ -99,15 +99,15 @@ export class FieldNameRenderer extends React.Component {signal} - - {value} - + {value} ; } - private _onClick(): void { + private _onClick(e): void { if (this.props.onClick) { + e.stopPropagation(); + e.preventDefault(); const args: IFieldNameClickEventArgs = this.props as IFieldNameClickEventArgs; this.props.onClick(args); return; diff --git a/src/extensions/ootbFields/OotbFieldsFieldCustomizer.ts b/src/extensions/ootbFields/OotbFieldsFieldCustomizer.ts index 87f8678f9..73e726ff3 100644 --- a/src/extensions/ootbFields/OotbFieldsFieldCustomizer.ts +++ b/src/extensions/ootbFields/OotbFieldsFieldCustomizer.ts @@ -73,3 +73,5 @@ export default class OotbFieldsFieldCustomizer super.onDisposeCell(event); } } + +// test querystring ?loadSPFX=true&debugManifestsFile=https://localhost:4321/temp/manifests.js&fieldCustomizers={"FieldName":{"id":"57ebd944-98ed-43f9-b722-e959d6dac6ad","properties":{}}}