mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
use hashed filename as unique tag id
This commit is contained in:
parent
546f389746
commit
18d809ce66
@ -56,7 +56,7 @@ class Li extends React.Component {
|
|||||||
|
|
||||||
handleClick = (e) => {
|
handleClick = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const aTag = document.getElementById('aTag');
|
const aTag = document.getElementById(this.props.item.hash);
|
||||||
aTag.click();
|
aTag.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ class Li extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<CopyToClipboard text={item.url} onCopy={() => this.setState({copied: true})}>
|
<CopyToClipboard text={item.url} onCopy={() => this.setState({copied: true})}>
|
||||||
<li className={styles.liWrapper}>
|
<li className={styles.liWrapper}>
|
||||||
<a href={item.url} target="_blank" style={{ display: 'none' }} id="aTag">nothing</a>
|
<a href={item.url} target="_blank" style={{ display: 'none' }} id={item.hash}>nothing</a>
|
||||||
<div className={styles.liContainer}>
|
<div className={styles.liContainer}>
|
||||||
<div>
|
<div>
|
||||||
<div />
|
<div />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user