Skip to content

Commit

Permalink
chore: remove is-mobile (#3953)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkwolf authored Apr 16, 2021
1 parent f42b629 commit 7863ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/input/Search.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineComponent, inject } from 'vue';
import classNames from '../_util/classNames';
import { isMobile } from 'is-mobile';
import isMobile from '../vc-menu/utils/isMobile';
import Input from './Input';
import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined';
import SearchOutlined from '@ant-design/icons-vue/SearchOutlined';
Expand Down Expand Up @@ -43,7 +43,7 @@ export default defineComponent({
return;
}
this.$emit('search', this.input.stateValue, e);
if (!isMobile({ tablet: true })) {
if (!isMobile.tablet) {
this.input.focus();
}
},
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@
"async-validator": "^3.3.0",
"dom-align": "^1.10.4",
"dom-scroll-into-view": "^2.0.0",
"is-mobile": "^2.2.1",
"lodash-es": "^4.17.15",
"moment": "^2.27.0",
"omit.js": "^2.0.0",
Expand Down

0 comments on commit 7863ac8

Please sign in to comment.