this happens when editing a title in a listing.

This doesn't work well. The field appears but the save/close toolbar disapear and the overlay can't be closed anymore. no JS errors are triggered.

<h2 data-edit-id="node/1/title/und/teaser" class="edit-allowed edit-field edit-type-form" data-edit-field-label="Title" aria-label="Entity node 1, field Title">
      <a href="/node/1"><span data-edit-id="node/1/title/und/teaser" class="edit-allowed edit-field edit-type-form edit-animate-fast" data-edit-field-label="Title" aria-label="Entity node 1, field Title" aria-disabled="false"><span class="field-item">Titre trois2f qdd</span></span></a>
    </h2>

Comments

nod_’s picture

Title: Opening edit form crash when <a> element is wrapping the data-edit-id element » Duplicate data-edit-id attribute for node title
Status: Active » Fixed

Had two data-edit-id attributes and that messed things up.

wim leers’s picture

One set by the server side, one added by the JS?

nod_’s picture

Both on the server side and in the same preprocess too -_-"

wim leers’s picture

Hehe :P

webchick’s picture

Issue tags: +Edit D7 Backport

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

caseyb’s picture

Status: Closed (fixed) » Active

Hi

I'm having a similar issue with duplicated data-edit-id attribute for the node title when creating teaser items.

Steps to produce issue:
1. Created featured content field for homepage that is an entity reference field type with format set to teaser.
2. Set this as a block using the 'Field to block' module selection option.
3. Added the block to the homepage with the result that the title is displayed normally and then followed by a duplicated link.

It looks to be a syntax error ( as there is a ' "> ' in front of the duplicated link) but not sure how to test this.

Thanks for any help to resolve this.

Here is the code if it helps:

<h2 property="dc:title" datatype="" class="node-title"><a href="/?q=node/262" title="<div data-edit-id="node/262/title/und/teaser"><div class="field-item">Title here</div></div>"><div data-edit-id="node/262/title/und/teaser"><div class="field-item">Title here</div></div></a></h2>

wim leers’s picture

Status: Active » Closed (fixed)

#7: please create a new issue.