Alternatively, I should be able to override the accept attribute directly, as per the original file field declaration; this currently does not work with the document field, as the accept attribute is always set based on the @mime_types instance variable.
Actual behaviour
The default list of mime types is always used, and the keyword argument is added as an incorrectly formatted attribute instead.
The custom
govuk_document_field
acceptsmime_types
as a keyword argument; however, the implementation will always use the default list:Expected behaviour
When I pass a custom
mime_types
array as a keyword argument, it overrides theaccept
attribute on the file field.Alternatively, I should be able to override the
accept
attribute directly, as per the original file field declaration; this currently does not work with the document field, as theaccept
attribute is always set based on the@mime_types
instance variable.Actual behaviour
The default list of mime types is always used, and the keyword argument is added as an incorrectly formatted attribute instead.