|
@@ -81,14 +81,6 @@ const PageCreateModal = (props) => {
|
|
|
setTodayInput2(value);
|
|
setTodayInput2(value);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * change pageNameInput
|
|
|
|
|
- * @param {string} value
|
|
|
|
|
- */
|
|
|
|
|
- function inputChangeHandler(value) {
|
|
|
|
|
- setPageNameInput(value);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* change template
|
|
* change template
|
|
|
* @param {string} value
|
|
* @param {string} value
|
|
@@ -206,7 +198,7 @@ const PageCreateModal = (props) => {
|
|
|
initializedPath={pageNameInput}
|
|
initializedPath={pageNameInput}
|
|
|
addTrailingSlash
|
|
addTrailingSlash
|
|
|
onSubmit={ppacSubmitHandler}
|
|
onSubmit={ppacSubmitHandler}
|
|
|
- onInputChange={inputChangeHandler}
|
|
|
|
|
|
|
+ onInputChange={value => setPageNameInput(value)}
|
|
|
autoFocus
|
|
autoFocus
|
|
|
/>
|
|
/>
|
|
|
)
|
|
)
|
|
@@ -217,7 +209,7 @@ const PageCreateModal = (props) => {
|
|
|
value={pageNameInput}
|
|
value={pageNameInput}
|
|
|
className="form-control flex-fill"
|
|
className="form-control flex-fill"
|
|
|
placeholder={t('Input page name')}
|
|
placeholder={t('Input page name')}
|
|
|
- onChange={e => inputChangeHandler(e.target.value)}
|
|
|
|
|
|
|
+ onChange={e => setPageNameInput(e.target.value)}
|
|
|
required
|
|
required
|
|
|
/>
|
|
/>
|
|
|
</form>
|
|
</form>
|