Skip to content

Commit a474ca4

Browse files
authored
Merge pull request #104 from AJIXuMuK/bug-103
Fix of bug 103
2 parents 58aa993 + 6a8ac04 commit a474ca4

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/controls/fields/fieldNameRenderer/FieldNameRenderer.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class FieldNameRenderer extends React.Component<IFieldNameRendererProps,
7272
//
7373
// for now only signal for New documents is implemented
7474
//
75-
let signal: JSX.Element = this.props.isNew ? <span className={css(styles.signal, styles.newItem)}><Icon iconName={'Glimmer'} className={css(styles.newIcon)}/></span> : null;
75+
let signal: JSX.Element = this.props.isNew ? <span className={css(styles.signal, styles.newItem)}><Icon iconName={'Glimmer'} className={css(styles.newIcon)} /></span> : null;
7676
let value: JSX.Element;
7777

7878
if (isLink) {
@@ -99,15 +99,15 @@ export class FieldNameRenderer extends React.Component<IFieldNameRendererProps,
9999
return <span className={css(styles.signalField, this.props.className)} style={this.props.cssProps}>
100100
{signal}
101101
<span className={styles.signalFieldValue}>
102-
<span data-selection-invoke={'true'}>
103-
{value}
104-
</span>
102+
{value}
105103
</span>
106104
</span>;
107105
}
108106

109-
private _onClick(): void {
107+
private _onClick(e): void {
110108
if (this.props.onClick) {
109+
e.stopPropagation();
110+
e.preventDefault();
111111
const args: IFieldNameClickEventArgs = this.props as IFieldNameClickEventArgs;
112112
this.props.onClick(args);
113113
return;

src/extensions/ootbFields/OotbFieldsFieldCustomizer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,5 @@ export default class OotbFieldsFieldCustomizer
7272
super.onDisposeCell(event);
7373
}
7474
}
75+
76+
// test querystring ?loadSPFX=true&debugManifestsFile=https://localhost:4321/temp/manifests.js&fieldCustomizers={"FieldName":{"id":"57ebd944-98ed-43f9-b722-e959d6dac6ad","properties":{}}}

0 commit comments

Comments
 (0)