angular-xeditable icon indicating copy to clipboard operation
angular-xeditable copied to clipboard

Editable row: breakage when form is embedded within a form

Open yeehahboogie opened this issue 10 years ago • 5 comments

When embedding the editable row table/form within another form the edit buttons no longer work.

http://jsfiddle.net/tallsam/cjwt6jhr/

Remove the wrapper form and it works correctly.

yeehahboogie avatar Sep 21 '16 07:09 yeehahboogie

Looking at the code, if the element is wrapped by a form (not editable-form), it assumes it's a single editable element and ignores the e-form attribute. Why do you need to have an editable-form wrapped by a form?

ckosloski avatar Sep 21 '16 13:09 ckosloski

I'm working on a complex reusable form component that is included within another form via a directive. So the component has no knowledge of the other form. In some circumstances the other form may not exist.

-form
  - name
  - size
  - historical-stock
     - year, volume
     - year, volume

If you consider the above, the stock form is a parent form, and the historical stock area would be the table with the editable rows. historical stock is embedded within the stock form using a directive.

yeehahboogie avatar Sep 22 '16 01:09 yeehahboogie

I see what you mean about not needing to use editable form - I think I'll switch to using editable popover in this case.

Feel free to close.

yeehahboogie avatar Sep 22 '16 01:09 yeehahboogie

OK, glad I could help. You need to close the issue.

ckosloski avatar Sep 22 '16 01:09 ckosloski

Okay thanks a lot.

yeehahboogie avatar Sep 22 '16 02:09 yeehahboogie