Skip to content

Commit

Permalink
[apigee#487] Remove invalid attributes from fieldset.
Browse files Browse the repository at this point in the history
  • Loading branch information
zakiya committed Oct 1, 2020
1 parent ca481c6 commit 9ca7afe
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apigee_edge.module
Original file line number Diff line number Diff line change
Expand Up @@ -1782,3 +1782,19 @@ function apigee_edge_app_listing_page_title(): TranslatableMarkup {

return $title;
}

/**
* Implements hook_preprocess_HOOK().
*/
function apigee_edge_preprocess_fieldset(&$variables) {

if ($variables['required'] == true) {
if ($variables['attributes']['required']) {
unset($variables['attributes']['required']);
}

if ($variables['attributes']['aria-required']) {
unset($variables['attributes']['aria-required']);
}
}
}

0 comments on commit 9ca7afe

Please sign in to comment.