Replaces Button react component by native button to fix bug on 5.9 in collections and terms block.
This commit is contained in:
parent
c50e70b97a
commit
6c41741dc9
|
@ -35,11 +35,13 @@ export default function({ attributes, setAttributes, className, isSelected }) {
|
|||
icon="no-alt"
|
||||
label={__('Remove', 'tainacan')}/>
|
||||
:
|
||||
<Button
|
||||
<button
|
||||
onClick={ () => removeCollectionOfId(collection.id) }
|
||||
icon="no-alt"
|
||||
showTooltip={false}
|
||||
label={__('Remove', 'tainacan')} />
|
||||
type="button"
|
||||
class="components-button has-icon"
|
||||
aria-label={__('Remove', 'tainacan')}>
|
||||
<span class="dashicon dashicons dashicons-no-alt" />
|
||||
</button>
|
||||
}
|
||||
<a
|
||||
id={ isNaN(collection.id) ? collection.id : 'collection-id-' + collection.id }
|
||||
|
|
|
@ -33,11 +33,13 @@ export default function({ attributes, setAttributes, className, isSelected }){
|
|||
icon="no-alt"
|
||||
label={__('Remove', 'tainacan')}/>
|
||||
:
|
||||
<Button
|
||||
<button
|
||||
onClick={ () => removeTermOfId(term.id) }
|
||||
icon="no-alt"
|
||||
showTooltip={false}
|
||||
label={__('Remove', 'tainacan')}/>
|
||||
type="button"
|
||||
class="components-button has-icon"
|
||||
aria-label={__('Remove', 'tainacan')}>
|
||||
<span class="dashicon dashicons dashicons-no-alt" />
|
||||
</button>
|
||||
}
|
||||
<a
|
||||
id={ isNaN(term.id) ? term.id : 'term-id-' + term.id }
|
||||
|
|
Loading…
Reference in New Issue