When manually setting #icon for a (submit) button in $form['actions'] array using hook_form_alter, this gets overridden by Actions class.
Do not override already set icons.

CommentFileSizeAuthor
#2 check-for-icon-2697503.patch560 bytesvolkerk
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

volkerk created an issue. See original summary.

volkerk’s picture

FileSize
560 bytes
volkerk’s picture

Version: 8.x-3.0-beta3 » 8.x-3.x-dev

  • markcarver committed 88149b5 on 8.x-3.x authored by volkerk
    Issue #2697503 by volkerk: Form action button icons get overridden
    
markhalliwell’s picture

Status: Active » Fixed

Thanks @volkerk!

I made one tiny change so it uses the isPropertyEmpty method instead.

Status: Fixed » Closed (fixed)

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