v0.8.3.2 - A Small Hotfix (#3194)
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com> Co-authored-by: Weblate (bot) <hosted@weblate.org> Co-authored-by: Havokdan <havokdan@yahoo.com.br> Co-authored-by: daydreamrabbit <devrabbit90@gmail.com> Co-authored-by: 無情天 <kofzhanganguo@126.com>
This commit is contained in:
parent
77de5ccce3
commit
894b49bb76
43 changed files with 307 additions and 241 deletions
|
|
@ -69,7 +69,9 @@ export class SettingItemComponent {
|
|||
if (!this.toggleOnViewClick) return false;
|
||||
|
||||
const mouseEvent = event as MouseEvent;
|
||||
return !elementRef.nativeElement.contains(mouseEvent.target)
|
||||
const selection = window.getSelection();
|
||||
const hasSelection = selection !== null && selection.toString().trim() === '';
|
||||
return !elementRef.nativeElement.contains(mouseEvent.target) && hasSelection;
|
||||
}),
|
||||
tap(() => {
|
||||
this.isEditMode = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue