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.

Inline Edit Allows Empty Values Which Breaks the Edit Capability

See original GitHub issue

I’m submitting a … (check one with “x”)

[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior In the inline edit demo, http://swimlane.github.io/ngx-datatable/#, if you clear the contents of a cell, then the cell goes to non-edit mode and you can’t reenter into edit mode.

Expected behavior You should either not be able to disable cell input when the content is empty or you filler content should be used when the cell is empty.

Reproduction of the problem

  1. Open http://swimlane.github.io/ngx-datatable/#. 2.Click inline edit. Clear the content.
  2. Click outside of the cell so that you are no longer in editing mode.
  3. Try and edit the field again. You can no longer edit.

What is the motivation / use case for changing the behavior? A table with inline edit enabled should not be able to enter an invalid state.

Please tell us about your environment: Google Chrome, OS X

  • Table version: 6.1.1

  • Angular version: 2.0.x

  • Browser: Chrome 56

  • Language: TypeScript

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
agilobcommented, Sep 1, 2018

I fixed it by making span class="container-fluid", the container has red background (for demonstration purposes ofc) so even when my field comment is empty it can be clicked and edited screenshot_20180901_082344

1reaction
brian-averycommented, Feb 25, 2017

Oh ok. Thanks for the explanation. Have a great weekend.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Edit Records via Inline Editing in a List View
Troubleshoot common issues with List View Inline Editing by reviewing these requirements and considerations: User permission requirements Enable Inline Edi.
Read more >
Inline edit one or multiple cells in a list
Inline edit one or multiple cells from the same column of a list to simultaneously change the value of the selected cells.
Read more >
Inline edit items in a list in Adobe Workfront
Go to a list of objects you want to inline edit. · Locate the object you want to edit, then click inside any...
Read more >
How to build an inline edit component in React - Emma Goto
Inline editing allows users to edit content without navigating to a separate edit screen. In this tutorial, we'll be building an accessible…
Read more >
Inline Editing in Grid Gantt Docs - DHTMLX Documentation
Inline editing lets you make any changes right through the grid: create and update tasks, set connections between them, define the start and...
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