Skip to content
This repository was archived by the owner on Nov 26, 2021. It is now read-only.

Commit 7086722

Browse files
committed
修复输入法闪烁的问题
1 parent eaf70ad commit 7086722

File tree

10 files changed

+229
-323
lines changed

10 files changed

+229
-323
lines changed

config/server.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ app.get('/', (req, res) => {
2727
res.sendFile(path.join(__dirname, '../example/index.html'));
2828
});
2929

30-
app.listen(3000, 'localhost', (err) => {
30+
app.listen(3000, (err) => {
3131
if (err) {
3232
debug(err);
3333
return;

example/BasicForm.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ const methods = {
6868
}
6969
return false;
7070
},
71-
async selectLimit(field, param) {
72-
// Simulation
73-
await sleep(1000);
71+
selectLimit(field, param) {
7472
if (Array.isArray(field.value)) {
7573
return field.value.length >= param;
7674
}
@@ -185,7 +183,6 @@ class BasicForm extends Component {
185183
id="hobby1"
186184
name="hobby"
187185
value="1"
188-
delay={200}
189186
/>
190187
hobby1
191188
</label>
@@ -194,7 +191,6 @@ class BasicForm extends Component {
194191
id="hobby2"
195192
name="hobby"
196193
value="2"
197-
delay={200}
198194
/>
199195
hobby2
200196
</label>
@@ -203,7 +199,6 @@ class BasicForm extends Component {
203199
id="hobby3"
204200
name="hobby"
205201
value="3"
206-
delay={200}
207202
/>
208203
hobby3
209204
</label>
@@ -212,7 +207,6 @@ class BasicForm extends Component {
212207
id="hobby4"
213208
name="hobby"
214209
value="4"
215-
delay={200}
216210
/>
217211
hobby4
218212
</label>

0 commit comments

Comments
 (0)