Skip to content

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