Skip to content

Commit

Permalink
fix: 删除无用tabindex
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaMaid committed Nov 9, 2018
1 parent ac3f8d1 commit a721d1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion components/Pop/Pop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ export class Pop extends Component<IPopProps, IPopState> {
// tslint:disable
const child: React.ReactElement<any> = React.Children.only(children);
return React.cloneElement(child, {
tabIndex: 0,
// tslint:disable:no-any
ref: (v: HTMLElement) => {
if (v) {
Expand Down
6 changes: 5 additions & 1 deletion components/Pop/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@

.@{pop-prefix-cls} {
position: absolute;
outline: 0;
outline: none;

:focus {
outline: none;
}
}

0 comments on commit a721d1b

Please sign in to comment.