From 0b3b5bfd3a932c6d9d517551bcf07ee4950d50ce Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Wed, 23 Mar 2022 11:37:01 +0100
Subject: [PATCH] [editor] Remove menu-item from number input

This makes the value unselectable.
---
 .../unit-view/page-view/canvas/section-menu.component.ts     | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/projects/editor/src/app/components/unit-view/page-view/canvas/section-menu.component.ts b/projects/editor/src/app/components/unit-view/page-view/canvas/section-menu.component.ts
index 54324c69f..af0eecfe3 100644
--- a/projects/editor/src/app/components/unit-view/page-view/canvas/section-menu.component.ts
+++ b/projects/editor/src/app/components/unit-view/page-view/canvas/section-menu.component.ts
@@ -49,11 +49,12 @@ import { UIElement } from '../../../../../../../common/interfaces/elements';
         <ng-container *ngIf="!section.dynamicPositioning">
           <mat-form-field appearance="fill">
             <mat-label>{{'section-menu.height' | translate }}</mat-label>
-            <input matInput mat-menu-item type="number"
+            <input matInput  type="number"
                    [value]="$any(section.height)"
-                   (click)="$any($event).stopPropagation()"
                    (change)="updateModel('height', $any($event.target).value)">
           </mat-form-field>
+<!--          mat-menu-item-->
+<!--                   (click)="$any($event).stopPropagation()"-->
         </ng-container>
         <div *ngIf="section.dynamicPositioning">
           <fieldset>
-- 
GitLab