Skip to content

Commit

Permalink
Reorder calls in link ui.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Dec 3, 2024
1 parent d1ef6c2 commit 675e150
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/ckeditor5-link/src/linkui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -724,16 +724,15 @@ export default class LinkUI extends Plugin {
this._createViews();
}

const linkCommand: LinkCommand = this.editor.commands.get( 'link' )!;

this.formView!.backButtonView.isVisible = linkCommand.isEnabled && !!linkCommand.value;

if ( this._isFormInPanel ) {
return;
}

const linkCommand: LinkCommand = this.editor.commands.get( 'link' )!;

this.formView!.disableCssTransitions();
this.formView!.resetFormStatus();
this.formView!.backButtonView.isVisible = linkCommand.isEnabled && !!linkCommand.value;

this._balloon.add( {
view: this.formView!,
Expand Down

0 comments on commit 675e150

Please sign in to comment.