question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

columnClassName attr is cleared when customEditor is enabled

See original GitHub issue

I noticed that using customEditor attribute of TableHeaderColumn, when a cell gets into edit mode (customEditor is enabled), the <td>s className defined by columnClassName attribute is cleared. Once the cell isn’t being edited anymore, the className is restored.

<TableHeaderColumn
  key={'column-' + h.id}
  columnClassName={(h.cellEditor) ? 'editable-td': ''}
  customEditor={this.formatEditor(h.id, h.cellEditor)}>
  {h.label}
</TableHeaderColumn>

Is there any way to keep the className in edit mode or pass a className to the <td> element when cell is in edit mode?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jsangilvecommented, Dec 29, 2016

@AllenFang you rock man!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Editor losing settings on Play - Unity Forum
When you hit the play button in the editor, all the objects in the active scene are serialized and saved, so that unity...
Read more >
CustomEditor - Scripting API - Unity - Manual
Tells an Editor class which run-time type it's an editor for. When you make a custom editor for a component, you need put...
Read more >
Use CustomEditor to customize your script inspector
decorator attributes · Health cannot be under 0 and above Max Health value · Health can be a slider · When With Shield...
Read more >
Custom Editor Inheritance in Unity - Stack Overflow
When you override the Character editor, you don't ever call the base methods. You need to add base.OnEnable(); to Soldier editor's OnEnable ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found