Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Prompt-method #389

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Just-a-fire
Copy link

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

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