Closed dmdb closed 7 years ago
@dmdb I think the issue is because you are using Pjax. Can you try without pjax widget? If that solves the issue, then you will surely have to work a bit further your code to make it work in conjunction with Pjax, like reinitializing the widget and so on...
@tonydspaniard Nope. Removed Pjax and got same. Forcing change event trigger on input after pushing clear button works fine. Solved this via "clientEvents" widget property
'clientEvents' => [
'clearDate' => 'function (e) {$(e.target).find("input").change();}',
],
Not sure that this way is right way to handle widget usage in filters. But it works, also with Pjax.
@dmdb Thank you very much for pointing that out and happy you found the way to solve the issue.
Can't figure out how clear button works. Using simple configuration of widget in GridView filter:
Pushing clear does'nt reload GridView. Inputs val() clears, but actual attribute value - not. It seems that none of change event is firing also. Am I miss something simple? In other parts widget works just great.