I have a twig template for showing a flag.
Display link as field: yes
AJAX link: yes

This template is (only) made of an anchor tag.

When the flag is not set, everything is fine... the template shows only <a ...>...</a>
But when I flag it, an extra div is added around my template (I don't like it as I would like to have an inline layout)

I don't know if this is linked, but I found this issue: https://www.drupal.org/node/736066

CommentFileSizeAuthor
#4 core-ajax-wrap-736066-191.patch4.88 KBDiDebru
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DuneBL created an issue. See original summary.

DuneBL’s picture

I confirm that the added div is coming from the Ajax request as after refreshing my page, the div disappears.

DiDebru’s picture

I will test that patch in https://www.drupal.org/node/736066 tomorrow and report back if it fixes the issue.

DiDebru’s picture

The whole patch will not work but I pick out the relevant part and tadaa it worked.
But I'm not sure where to put it so I just put it in here :)

c.nish2k3’s picture

This issue has nothing to do with Flag module and needs to be fixed in the core (ajax.js). This is being worked on ticket #736066 and no action required here. I guess this can be closed on account of #736066

socketwench’s picture

Status: Active » Closed (works as designed)

Yeah, it looks like that's the case. :-(