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.
https://notiflix.github.io
MIT License
635 stars 55 forks source link

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

Closed beans518 closed 1 year ago

beans518 commented 1 year ago

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):

Additional context

Here is my code sss

furcan commented 1 year ago

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