Skip to content

Commit

Permalink
fix: wrong input type (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lapotor authored Jun 22, 2024
1 parent 19d754e commit 7f40093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<label class="NgxEditor__Popup--Label" [htmlFor]="getId('image-popup-url')">{{
getLabel('url') | async
}}</label>
<input type="href" [id]="getId('image-popup-url')" formControlName="src" autocomplete="off" />
<input type="url" [id]="getId('image-popup-url')" formControlName="src" autocomplete="off" />
<div *ngIf="src.touched && src.invalid" class="NgxEditor__HelpText NgxEditor__HelpText--Error">
{{ src.errors?.['pattern'] && getLabel('enterValidUrl') | async }}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="NgxEditor__Popup--FormGroup">
<div class="NgxEditor__Popup--Col">
<label class="NgxEditor__Popup--Label" [htmlFor]="getId('link-popup-url')">{{ getLabel('url') | async }}</label>
<input type="href" [id]="getId('link-popup-url')" formControlName="href" autocomplete="off" />
<input type="url" [id]="getId('link-popup-url')" formControlName="href" autocomplete="off" />
<div *ngIf="href.touched && href.invalid" class="NgxEditor__HelpText NgxEditor__HelpText--Error">
{{ href.errors?.['pattern'] && getLabel('enterValidUrl') | async }}
</div>
Expand Down

0 comments on commit 7f40093

Please sign in to comment.