ngx-inline-editor icon indicating copy to clipboard operation
ngx-inline-editor copied to clipboard

Only current input text editor should remain active when clicked, in case of multiple editors

Open mandeeps1 opened this issue 8 years ago • 3 comments

Steps:

  1. Create text editor on multiple different form fields.
  2. Click on all that fields.

Expected result: Only the current editor should remain active. Other opened editors should remain inactive.

Actual result: All opened editors remains active

Version: 0.1.1-alpha.20

mandeeps1 avatar Sep 20 '17 11:09 mandeeps1

Hi @mandeeps1, thanks for your reporting :+1: I think you can use [saveOnBlur] attribute to save when loose the focus of input

<inline-editor [saveOnBlur]="true" type="text" [(ngModel)]="test"></inline-editor>

Does it resolve your problem?

tonivj5 avatar Sep 23 '17 08:09 tonivj5

Hi @xxxtonixxx ,

Thanks for the info!! It is working fine until the underlying object/field is not NULL. It still remains active when the object/field is NULL. It displays NULL fields as "empty" instead of a blank string.

mandeeps1 avatar Sep 26 '17 08:09 mandeeps1

Hmm, you can set the empty message using empty property. Maybe I'm misunderstanding your problem :confused:

Could you provide us a demo, please?

And sorry for my delay, I forgot it :sweat_smile:

tonivj5 avatar Nov 02 '17 22:11 tonivj5