mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 05:10:19 +08:00
Set focus for code modal.
This commit is contained in:
@ -95,7 +95,7 @@ export const CountDownInput = (props) => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Row>
|
<Row>
|
||||||
<Input value={key} placeholder={i18next.t("general:Captcha")} onPressEnter={handleOk} onChange={e => setKey(e.target.value)} />
|
<Input autoFocus value={key} placeholder={i18next.t("general:Captcha")} onPressEnter={handleOk} onChange={e => setKey(e.target.value)} />
|
||||||
</Row>
|
</Row>
|
||||||
</Col>
|
</Col>
|
||||||
)
|
)
|
||||||
@ -135,13 +135,14 @@ export const CountDownInput = (props) => {
|
|||||||
<Modal
|
<Modal
|
||||||
closable={false}
|
closable={false}
|
||||||
maskClosable={false}
|
maskClosable={false}
|
||||||
|
destroyOnClose={true}
|
||||||
title={i18next.t("general:Captcha")}
|
title={i18next.t("general:Captcha")}
|
||||||
visible={visible}
|
visible={visible}
|
||||||
okText={i18next.t("user:OK")}
|
okText={i18next.t("user:OK")}
|
||||||
cancelText={i18next.t("user:Cancel")}
|
cancelText={i18next.t("user:Cancel")}
|
||||||
onCancel={handleCancel}
|
onCancel={handleCancel}
|
||||||
onOk={handleOk}
|
onOk={handleOk}
|
||||||
width={300}
|
width={248}
|
||||||
>
|
>
|
||||||
{renderCheck()}
|
{renderCheck()}
|
||||||
</Modal>
|
</Modal>
|
||||||
|
Reference in New Issue
Block a user