Skip to content

Commit

Permalink
SearchBox: disable pointer events when is focused (backport to v7) (#…
Browse files Browse the repository at this point in the history
…20971)

* SearchBox: disable pointer events when is focused

* Change files
  • Loading branch information
layershifter authored Dec 9, 2021
1 parent 4448d43 commit 067520e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "SearchBox: disable pointer events when is focused",
"packageName": "office-ui-fabric-react",
"email": "olfedias@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export function getStyles(props: ISearchBoxStyleProps): ISearchBoxStyles {
},
[`:hover .${classNames.icon}`]: {
opacity: 0,
pointerEvents: 'none',
},
},
},
Expand Down Expand Up @@ -151,6 +152,7 @@ export function getStyles(props: ISearchBoxStyleProps): ISearchBoxStyles {
},
hasFocus && {
opacity: 0,
pointerEvents: 'none',
},
!disableAnimation && {
transition: `opacity ${AnimationVariables.durationValue1} 0s`,
Expand Down

0 comments on commit 067520e

Please sign in to comment.