Megabit / Blazorise

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
https://blazorise.com/
Other
3.29k stars 533 forks source link

Markdown Autofocus with modal #3713

Closed ayvarchello closed 2 years ago

ayvarchello commented 2 years ago

Describe the bug Markdown Autofocus inside modal doesn't work

To Reproduce

Markdown Edit Modal Component

<Tooltip Text="@("Edit " + PropertyName)">
    <Button class="btn mb-1" Clicked="@ModalShow" too>
        <i class="fa fa-pencil"></i>
    </Button>
</Tooltip>
<Modal @ref="modal">
    <Form>
        <ModalContent Centered>
            <ModalHeader>
                <ModalTitle>Edit @PropertyName</ModalTitle>
            </ModalHeader>
            <ModalBody>
                <Field>
                    <Markdown Autofocus="true"/>
                </Field>
            </ModalBody>
            <ModalFooter>
            </ModalFooter>
        </ModalContent>
    </Form>
</Modal>

Expected behavior Autofocused Markdown

Additional context EasyMDE Autofocus bug was already fixed(in easymde@2.16.2-49.0).

stsrki commented 2 years ago

Moving to 1.1 since the fix would require adding an additional API.

stsrki commented 2 years ago

Fixed for 1.1