{"action":"created","issue":{"url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/96","labels_url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/96/comments","events_url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/96/events","html_url":"https://github.com/kartik-v/yii2-widget-select2/issues/96","id":122491171,"number":96,"title":"allowClear not working in GridView even in demo","user":{"login":"KirillRyzhkov","id":5438064,"avatar_url":"https://avatars.githubusercontent.com/u/5438064?v=3","gravatar_id":"","url":"https://api.github.com/users/KirillRyzhkov","html_url":"https://github.com/KirillRyzhkov","followers_url":"https://api.github.com/users/KirillRyzhkov/followers","following_url":"https://api.github.com/users/KirillRyzhkov/following{/other_user}","gists_url":"https://api.github.com/users/KirillRyzhkov/gists{/gist_id}","starred_url":"https://api.github.com/users/KirillRyzhkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KirillRyzhkov/subscriptions","organizations_url":"https://api.github.com/users/KirillRyzhkov/orgs","repos_url":"https://api.github.com/users/KirillRyzhkov/repos","events_url":"https://api.github.com/users/KirillRyzhkov/events{/privacy}","received_events_url":"https://api.github.com/users/KirillRyzhkov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-16T12:10:21Z","updated_at":"2015-12-16T14:09:46Z","closed_at":"2015-12-16T13:41:03Z","body":"You have an error on your demo page with select 2 filter.\r\nWhen allowClear is set to true with placeholder\r\n<pre>\r\n'filterWidgetOptions'=>[\r\n   'pluginOptions'=>['allowClear'=>true],\r\n],\r\n'filterInputOptions'=>['placeholder'=>'Any author'],\r\n</pre>\r\nGives an error \r\n<pre>\r\nThe select2('close') method was called on an element that is not using Select2.$.fn.select2 @ select2.full.js:5845\r\nselect2.full.js:5853 Uncaught TypeError: Cannot read property 'close' of undefined\r\n</pre>\r\n\r\nIt happens with 'pjax'=>true and only when you click clear second time. First time works ok.\r\nIs it possible to fix?"},"comment":{"url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/comments/165116722","html_url":"https://github.com/kartik-v/yii2-widget-select2/issues/96#issuecomment-165116722","issue_url":"https://api.github.com/repos/kartik-v/yii2-widget-select2/issues/96","id":165116722,"user":{"login":"KirillRyzhkov","id":5438064,"avatar_url":"https://avatars.githubusercontent.com/u/5438064?v=3","gravatar_id":"","url":"https://api.github.com/users/KirillRyzhkov","html_url":"https://github.com/KirillRyzhkov","followers_url":"https://api.github.com/users/KirillRyzhkov/followers","following_url":"https://api.github.com/users/KirillRyzhkov/following{/other_user}","gists_url":"https://api.github.com/users/KirillRyzhkov/gists{/gist_id}","starred_url":"https://api.github.com/users/KirillRyzhkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KirillRyzhkov/subscriptions","organizations_url":"https://api.github.com/users/KirillRyzhkov/orgs","repos_url":"https://api.github.com/users/KirillRyzhkov/repos","events_url":"https://api.github.com/users/KirillRyzhkov/events{/privacy}","received_events_url":"https://api.github.com/users/KirillRyzhkov/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T14:09:46Z","updated_at":"2015-12-16T14:09:46Z","body":"I am sorry but it did not work for me. I removed kartik-widgets. Installed them again, removed all the assets generated by Yii and still I have this error in the GridView"}}