Skip to content

Commit

Permalink
Bug 111881: UnifiedPicker: Backspace does not work for recipients in …
Browse files Browse the repository at this point in the history
…pop out window (#18428)

* fix pop out compose backspace delete

* Change files
  • Loading branch information
litong2 authored Jun 3, 2021
1 parent 30fd711 commit 2c9b177
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "unifiedpicker: make backspace delete work for pop out windows",
"packageName": "@fluentui/react-experiments",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export const UnifiedPicker = <T extends {}>(props: IUnifiedPickerProps<T>): JSX.
input &&
input.current &&
!input.current.isValueSelected &&
input.current.inputElement === document.activeElement &&
input.current.inputElement === ev.currentTarget.ownerDocument.activeElement &&
(input.current as Autofill).cursorLocation === 0
) {
const indexToRemove = selectedItems.length - 1;
Expand Down

0 comments on commit 2c9b177

Please sign in to comment.