kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
558 stars 302 forks source link

BooleanColumn: if reset filter (set prompt value that is equal to empty string) - then value in dropdown will be automatically set to 0 (Inactive) #1046

Open vadim-bulochnik opened 1 year ago

vadim-bulochnik commented 1 year ago

Prerequisites

Steps to reproduce the issue

  1. Add BooleanColumn to the grid with default settings.
  2. Choose filter value "Active" (or "Inactive", it doesn't matter).
  3. Reset filter value (by choosing prompt value).

Expected behavior and actual behavior

When I follow those steps, I see that filter value has been automatically set to "Inactive".

I was expecting that filter value will be set to "" (prompt).

Environment

PHP 7.3 (I have a feeling that this error is because of PHP version, because on your DEMO page it's okay) Yii 2.0.46

Browsers

Operating System

Libraries

Isolating the problem