mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-19 07:52:33 +02:00
Fixed: Tooltips not working for Icon Buttons, Revert title pullout in Link.js
This commit is contained in:
parent
2f311452da
commit
da720fdf4c
@ -32,7 +32,6 @@ class Link extends Component {
|
|||||||
isDisabled,
|
isDisabled,
|
||||||
noRouter,
|
noRouter,
|
||||||
onPress,
|
onPress,
|
||||||
title,
|
|
||||||
...otherProps
|
...otherProps
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
@ -40,10 +39,6 @@ class Link extends Component {
|
|||||||
let el = component;
|
let el = component;
|
||||||
|
|
||||||
if (to) {
|
if (to) {
|
||||||
if (title) {
|
|
||||||
linkProps.title = title;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((/\w+?:\/\//).test(to)) {
|
if ((/\w+?:\/\//).test(to)) {
|
||||||
el = 'a';
|
el = 'a';
|
||||||
linkProps.href = to;
|
linkProps.href = to;
|
||||||
@ -92,7 +87,6 @@ Link.propTypes = {
|
|||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
component: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
component: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
||||||
to: PropTypes.string,
|
to: PropTypes.string,
|
||||||
title: PropTypes.string,
|
|
||||||
target: PropTypes.string,
|
target: PropTypes.string,
|
||||||
isDisabled: PropTypes.bool,
|
isDisabled: PropTypes.bool,
|
||||||
noRouter: PropTypes.bool,
|
noRouter: PropTypes.bool,
|
||||||
|
Loading…
Reference in New Issue
Block a user