Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix of bug 103 #104

Merged
merged 1 commit into from
Aug 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/controls/fields/fieldNameRenderer/FieldNameRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class FieldNameRenderer extends React.Component<IFieldNameRendererProps,
//
// for now only signal for New documents is implemented
//
let signal: JSX.Element = this.props.isNew ? <span className={css(styles.signal, styles.newItem)}><Icon iconName={'Glimmer'} className={css(styles.newIcon)}/></span> : null;
let signal: JSX.Element = this.props.isNew ? <span className={css(styles.signal, styles.newItem)}><Icon iconName={'Glimmer'} className={css(styles.newIcon)} /></span> : null;
let value: JSX.Element;

if (isLink) {
Expand All @@ -99,15 +99,15 @@ export class FieldNameRenderer extends React.Component<IFieldNameRendererProps,
return <span className={css(styles.signalField, this.props.className)} style={this.props.cssProps}>
{signal}
<span className={styles.signalFieldValue}>
<span data-selection-invoke={'true'}>
{value}
</span>
{value}
</span>
</span>;
}

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;
Expand Down
2 changes: 2 additions & 0 deletions src/extensions/ootbFields/OotbFieldsFieldCustomizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":{}}}