Skip to content

Add Prompt-method#389

Open
Just-a-fire wants to merge 1 commit into
nakupanda:masterfrom
Just-a-fire:master
Open

Add Prompt-method#389
Just-a-fire wants to merge 1 commit into
nakupanda:masterfrom
Just-a-fire:master

Conversation

@Just-a-fire

@Just-a-fire Just-a-fire commented Jun 11, 2019

Copy link
Copy Markdown

Add Prompt-method (like in the BootboxJS plugin) with native HTML5 form validation.

BootstrapDialog.prompt({
    title: 'Input number',
    inputType: 'number',
    min: 1,
    max: 10,
    step: 0.5,
    callback: show
});

Can replace <button type="submit" class="hidden"></button> on
<button type="submit" tabindex="-1" style="position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px;"></button>
in method createPromptForm() because it doesn't submit the form on Enter in Safari

…rm validation.

Can replace '<button type="submit" class="hidden"></button>' on
'<button type="submit" tabindex="-1" style="position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px;"></button>'
in method createPromptForm() because it doesn't submit the form on Enter in Safari
@Just-a-fire Just-a-fire mentioned this pull request Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant