- Issue created by @knyshuk.vova
ManagedFile element has wrong #accept assignment
$element['upload']['#attributes'] = ['accept' => $element['#accept']];
It removes previously set attributes.
if (!empty($element['#description'])) {
$element['upload']['#attributes']['aria-describedby'] = $element['#id'] . '--description';
}
if (!empty($element['#accept'])) {
$element['upload']['#attributes'] = ['accept' => $element['#accept']];
}
Active
11.0 π₯
file.module