Explorar el Código

Disable the underlying button element when an ItemButton is disabled (#10194)

Fixes #10191
master
ThibG hace 5 años
committed by Eugen Rochko
padre
commit
b3668a79ec
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      app/javascript/mastodon/components/icon_button.js

+ 2
- 0
app/javascript/mastodon/components/icon_button.js Ver fichero

@@ -86,6 +86,7 @@ export default class IconButton extends React.PureComponent {
onClick={this.handleClick}
style={style}
tabIndex={tabIndex}
disabled={disabled}
>
<Icon id={icon} fixedWidth aria-hidden='true' />
</button>
@@ -104,6 +105,7 @@ export default class IconButton extends React.PureComponent {
onClick={this.handleClick}
style={style}
tabIndex={tabIndex}
disabled={disabled}
>
<Icon id={icon} style={{ transform: `rotate(${rotate}deg)` }} fixedWidth aria-hidden='true' />
</button>


Cargando…
Cancelar
Guardar