Skip to content

Commit

Permalink
Merge pull request #16224 from ckeditor/ck/6044
Browse files Browse the repository at this point in the history
Fix (link): Set `inputmode=url` to link balloon form input. Closes #16389.
  • Loading branch information
scofalik authored May 20, 2024
2 parents a694ca4 + 41d0718 commit 4751854
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ckeditor5-link/src/ui/linkformview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ export default class LinkFormView extends View {
const t = this.locale!.t;
const labeledInput = new LabeledFieldView( this.locale, createLabeledInputText );

labeledInput.fieldView.inputMode = 'url';
labeledInput.label = t( 'Link URL' );

return labeledInput;
Expand Down
4 changes: 4 additions & 0 deletions packages/ckeditor5-link/tests/ui/linkformview.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ describe( 'LinkFormView', () => {
expect( spy.calledOnce ).to.true;
} );

it( 'should create url input with inputmode=url', () => {
expect( view.urlInputView.fieldView.inputMode ).to.be.equal( 'url' );
} );

describe( 'template', () => {
it( 'has url input view', () => {
expect( view.template.children[ 0 ].get( 0 ) ).to.equal( view.urlInputView );
Expand Down

0 comments on commit 4751854

Please sign in to comment.