OOUI: Backport Ie43a0a346fea2dd2fda540d62f24410de1bc0d76
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 14 Jan 2019 20:08:11 +0000 (21:08 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 14 Jan 2019 20:10:10 +0000 (21:10 +0100)
Bug: T213544
Change-Id: I0bec76fd6d394329331c23ef43c28cb502cb5605

resources/lib/ooui/oojs-ui-core.js

index c6c3706..047e1e4 100644 (file)
@@ -8049,6 +8049,7 @@ OO.ui.DropdownWidget = function OoUiDropdownWidget( config ) {
        this.$handle
                .addClass( 'oo-ui-dropdownWidget-handle' )
                .attr( {
+                       type: 'button',
                        'aria-owns': this.menu.getElementId(),
                        'aria-haspopup': 'listbox'
                } )