🐝 Fix: [web]:修复手机端点击跳转失败,以及书签输入字符数限制
This commit is contained in:
parent
c08ed759b0
commit
c2b7f6f01c
@ -171,7 +171,7 @@ class Search extends React.Component {
|
||||
onChange={this.contentChange.bind(this)}
|
||||
onKeyDown={this.keyUp.bind(this)}
|
||||
onFocus={() => this.setState({ isFocus: true })}
|
||||
onBlur={() => setTimeout(() => this.setState({ isFocus: false }), 200)}
|
||||
onBlur={() => setTimeout(() => this.setState({ isFocus: false }), 600)}
|
||||
/>
|
||||
{this.renderResults()}
|
||||
</div>
|
||||
|
@ -21,8 +21,8 @@ function mapDispatchToProps(dispatch) {
|
||||
|
||||
const reg = {
|
||||
name: {
|
||||
reg: /^.{1,40}$/,
|
||||
text: "名称字符数为1-40"
|
||||
reg: /^.{1,200}$/,
|
||||
text: "名称字符数为1-200"
|
||||
},
|
||||
url: {
|
||||
reg: /^.{1,5000}$/,
|
||||
@ -69,7 +69,7 @@ class AddModal extends React.Component {
|
||||
|
||||
changeValue(e) {
|
||||
const name = e.target.name;
|
||||
const value = e.target.value.trim();
|
||||
const value = e.target.value
|
||||
this.checkValue(name, value);
|
||||
this.setState({ [name]: value });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user