@libs-ui/components-inputs-quill 0.2.229 → 0.2.230

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -676,17 +676,19 @@ class LibsUiComponentsInputsQuillComponent {
676
676
  this.setHandlerFunction();
677
677
  await lastValueFrom(timer(this.timeDelayInit()));
678
678
  this.initQuill();
679
- this.display.set(true);
680
679
  this.setContent(get(this.item(), this.fieldNameBind(), ''));
681
680
  this.handlerTextChange();
682
681
  this.handlerSelectionChange();
683
682
  this.handlerPaste();
684
- if (!this.autoFocus()) {
685
- // gọi hàm này để quill đánh dấu là đã focus trong khi quill chưa khởi tạo xong để không bị scroll xuống dưới.sau khi quill khởi tạo xong và check nếu đang focus đang được bật thì nó không gọi lại hàm focus nữa
686
- this.quill()?.focus();
683
+ // gọi hàm này để quill đánh dấu là đã focus trong khi quill chưa khởi tạo xong để không bị scroll xuống dưới.sau khi quill khởi tạo xong và check nếu đang focus đang được bật thì nó không gọi lại hàm focus nữa
684
+ this.quill()?.focus();
685
+ if (this.autoFocus()) {
686
+ this.display.set(true);
687
+ this.quill()?.blur();
687
688
  }
688
689
  fromEvent(window, 'resize').pipe(takeUntil(this.onDestroy)).subscribe(this.calculatorToolbar.bind(this));
689
690
  await lastValueFrom(timer(400));
691
+ this.display.set(true);
690
692
  const cursorSpan = this.quill()?.root.querySelector('.ql-cursor');
691
693
  if (cursorSpan) {
692
694
  cursorSpan.remove();