diff --git a/package.json b/package.json index eccfa3e..1d6dbfe 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,8 @@ "test": "react-scripts test", "eject": "react-scripts eject", "predeploy": "npm run build", - "deploy": "gh-pages -d build" + "deploy": "gh-pages -d build", + "format": "prettier --write \"./src/**/*.{js,jsx,ts,tsx,json,vue}\"" }, "eslintConfig": { "extends": "react-app" diff --git a/src/components/StyleInput/StyleInput.tsx b/src/components/StyleInput/StyleInput.tsx index 74e6f41..27f3b06 100644 --- a/src/components/StyleInput/StyleInput.tsx +++ b/src/components/StyleInput/StyleInput.tsx @@ -69,7 +69,6 @@ const StyleInput: React.FC = () => { className={`react-dropdown-select-item ${ itemIndex === cursor ? "react-dropdown-select-item-active" : "" }`} - tabIndex={-1} onClick={() => methods.addItem(item)} > {item.icon}