Fix Bug 50792
This commit is contained in:
parent
69cf357661
commit
b6ee364ab5
|
@ -24,16 +24,20 @@ const PageLink = props => {
|
|||
type="text"
|
||||
placeholder={_t.textLink}
|
||||
value={stateLink}
|
||||
onChange={(event) => {setLink(event.target.value);
|
||||
if(stateAutoUpdate) setDisplay(event.target.value); }}
|
||||
onChange={(event) => {
|
||||
setLink(event.target.value);
|
||||
if((!stateDisplay || stateDisplay === stateLink) && stateAutoUpdate) setDisplay(event.target.value);
|
||||
}}
|
||||
></ListInput>
|
||||
<ListInput
|
||||
label={_t.textDisplay}
|
||||
type="text"
|
||||
placeholder={_t.textDisplay}
|
||||
value={stateDisplay}
|
||||
onChange={(event) => {setDisplay(event.target.value);
|
||||
setAutoUpdate(event.target.value == ''); }}
|
||||
onChange={(event) => {
|
||||
setDisplay(event.target.value);
|
||||
setAutoUpdate(event.target.value == '');
|
||||
}}
|
||||
></ListInput>
|
||||
<ListInput
|
||||
label={_t.textScreenTip}
|
||||
|
|
|
@ -117,7 +117,7 @@ const PageLink = props => {
|
|||
value={link}
|
||||
onChange={(event) => {
|
||||
setLink(event.target.value);
|
||||
if(stateAutoUpdate) setDisplay(event.target.value);
|
||||
if((!stateDisplay || stateDisplay === link) && stateAutoUpdate) setDisplay(event.target.value);
|
||||
}}
|
||||
/> :
|
||||
<ListItem link={'/add-link-to/'} title={_t.textLinkTo} after={displayTo} routeProps={{
|
||||
|
@ -130,8 +130,10 @@ const PageLink = props => {
|
|||
placeholder={_t.textDisplay}
|
||||
value={stateDisplay}
|
||||
disabled={displayDisabled}
|
||||
onChange={(event) => {setDisplay(event.target.value);
|
||||
setAutoUpdate(event.target.value == ''); }}
|
||||
onChange={(event) => {
|
||||
setDisplay(event.target.value);
|
||||
setAutoUpdate(event.target.value == '');
|
||||
}}
|
||||
/>
|
||||
<ListInput label={_t.textScreenTip}
|
||||
type="text"
|
||||
|
|
|
@ -89,7 +89,7 @@ const AddLinkView = props => {
|
|||
value={link}
|
||||
onChange={(event) => {
|
||||
setLink(event.target.value);
|
||||
if(stateAutoUpdate) setDisplayText(event.target.value);
|
||||
if((!stateDisplayText || stateDisplayText === link) && stateAutoUpdate) setDisplayText(event.target.value);
|
||||
}}
|
||||
className={isIos ? 'list-input-right' : ''}
|
||||
/>
|
||||
|
@ -115,8 +115,10 @@ const AddLinkView = props => {
|
|||
placeholder={_t.textDisplay}
|
||||
value={stateDisplayText}
|
||||
disabled={displayDisabled}
|
||||
onChange={(event) => {setDisplayText(event.target.value);
|
||||
setAutoUpdate(event.target.value == ''); }}
|
||||
onChange={(event) => {
|
||||
setDisplayText(event.target.value);
|
||||
setAutoUpdate(event.target.value == '');
|
||||
}}
|
||||
className={isIos ? 'list-input-right' : ''}
|
||||
/>
|
||||
<ListInput label={_t.textScreenTip}
|
||||
|
|
Loading…
Reference in a new issue