notiflix / Notiflix

Notiflix is a pure JavaScript library for client-side non-blocking notifications, popup boxes, loading indicators, and more that makes your web projects much better.

Home Page:https://notiflix.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] - Can't type on Confirm.prompt()

beans518 opened this issue · comments

Describe the bug

For some reason, I cannot type inside the textarea of Notiflix.Confirm.prompt and I don't know why.

To Reproduce

Steps to reproduce the behavior:

  1. Click a button that will appear the prompt

Expected behavior

I should type inside the textarea and then save it as a remarks, but the main issue is not letting me type.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Windows
  • Browser : Edge
  • Version of notiflix: notiflix-3.2.6

Additional context

Here is my code
sss

commented

Hello @beans518,

First of all, if you are not checking anything regarding the client's answer to move forward with the okCallback, maybe you can just use Notiflix.Confirm.show()

or for your code with prompt,

Notiflix.Confirm.prompt(
  'Title',
  'Question?',
  '', // leave as an empty string if you are not willing to have prefilled answer
  'Ok',
  'Cancel',
  function okCb(clientAnswer) {
    console.log('Client answer is: ' + clientAnswer);
  },
  function cancelCb(clientAnswer) {
    console.log('Client answer was: ' + clientAnswer);
  },
  {
    // Custom options
  },
);

I am closing this ticket because I believe, the case that you presented is not related to Notiflix, there might be something else.

Thanks,
Furkan