Support

Account

Home Forums Front-end Issues Markup for newly created taxonomy items in popup Reply To: Markup for newly created taxonomy items in popup

  • for what it’s worth, acf-input.js:9202:

    // create new li
    var $li = $([
    	'<li data-id="' + term.term_id + '">',
    		'<input id="tax-check-' + term.term_id + '" type="' + type + '" value="' + term.term_id + '" name="' + name + '" /> ',
    		'<label for="tax-check-' + term.term_id + '">' + term.term_label + '</label>',
    	'</li>'
    ].join(''));

    … that ‘fixes’ the problem for me and now works as expected.

    Do you think this change would be done in the core? As previously mentioned, neither of the 3 ways is incorrect by any means. It’s just that the current way doesn’t allow much styling control.

    Ideally it should be input, then label.