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

Inline mode widget hiding before error shown (on Enter press only) #128

Closed
wa1kb0y opened this issue Jul 9, 2016 · 6 comments
Closed

Inline mode widget hiding before error shown (on Enter press only) #128

wa1kb0y opened this issue Jul 9, 2016 · 6 comments
Labels

Comments

@wa1kb0y
Copy link

wa1kb0y commented Jul 9, 2016

If you press Enter, widget disappearing immediately, on inline mode only. If an error occurred, it can only be seen if you click on widget again. But clicking on submit button works correctly. I'm not strong in js and not found how to fix. Thank you for the great widget!

@kartik-v
Copy link
Owner

Set Editable::submitOnEnter property to false for your use case above to prevent submit on enter keypress.

@wa1kb0y
Copy link
Author

wa1kb0y commented Jul 11, 2016

But i need to submit on Enter keypress :) If set submitOnEnter to false input just hiding anyway.

@wa1kb0y
Copy link
Author

wa1kb0y commented Jul 11, 2016

This is my widget code

<?php
echo Editable::widget([
    'ajaxSettings'=>['url' => Url::to(['blablabla/update'])],
    'asPopover' => false,
    'buttonsTemplate'=>'{submit}',
    'submitButton' =>['icon'=>'<i class="glyphicon glyphicon-ok"></i>'],
    'format' => Editable::FORMAT_BUTTON,
    'name' => 'address',
    'value' => $address,
    'header' => 'Address',
    'size' => 'md',
    'options' => ['class'=>'form-control', 'placeholder'=>'Enter address...']
]);
?>

@kartik-v kartik-v reopened this Jul 11, 2016
@kartik-v
Copy link
Owner

Will need to check on this when I get time and update. Opening this.

@gb5256
Copy link

gb5256 commented Jul 19, 2016

I can confirm this issue.
Experiencing the same behaviour.

@stale
Copy link

stale bot commented May 26, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 26, 2019
@stale stale bot closed this as completed Jun 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants