私は遅いと知っていますが、これは私を狂っています。私は遅れを変えたいとは思っていませんでした。もし私がやったとしても、私はあまりにも速く入力すると、私は最後の文字を消去します。
は大きな頭痛の種の後、私は最善の解決策:)
があなたのjqueryの-UI-1.8.20.custom.jsを開きます(コードは、他のバージョンで動作しますを保証することはできません)、その後、これを見つけるを見つけましたライン:
blur: function(event, ui) {
// don't set the value of the text field if it's already correct
// this prevents moving the cursor unnecessarily
if (self.menu.element.is(":visible") &&
(self.element.val() !== self.term)) {
self.element.val(self.term);
}
}
だけif statement
このようにすることをコメントアウト:
blur: function(event, ui) {
// don't set the value of the text field if it's already correct
// this prevents moving the cursor unnecessarily
/*COMMENTING THIS IF OUT MAKES AUTOCOMPLETE STOP ERASING WHAT YOU TYPE
if (self.menu.element.is(":visible") &&
(self.element.val() !== self.term)) {
self.element.val(self.term);
}
*/
}
、すべてがうまくいく罰金:)