svelte-dialogs icon indicating copy to clipboard operation
svelte-dialogs copied to clipboard

Text area input in dialog.prompt defaults to rtl direction

Open chit-uob opened this issue 2 years ago • 1 comments

Issue: the text area input in dialog.prompt defaults to the rtl writing direction image

Steps to reproduce: go on the showcase website https://bibizio.github.io/svelte-dialogs/, go to the "Prompt input types" example, try to type something in the text area input.

chit-uob avatar Jan 06 '23 21:01 chit-uob

To those wondering, the current workaround is to add style: "direction: ltr" to the textarea object. Like this:

        const input = await dialogs.prompt([{
            label: "label name",
            type: "textarea", rows: 10, cols: 20, style: "direction: ltr"
        }], {title: "prompt title"});

chit-uob avatar Jan 06 '23 22:01 chit-uob