Copy Paste on cell type Dropdown

Tags: #<Tag:0x00007efc6062cfd8>

I wanted to know why when I copy and paste a value from a numeric cell to a dropdown cell, the invalid class appears, even though the value belongs to the source

Demo: http://jsfiddle.net/4boz5tc0/1/

Hi @guilherme.farias

It happens because the validator is checking the cell type which in this case is different and that’s why it treat this value as invalid. You can bypass this check by adding some logic in beforeValidate hook. I’ve prepared an example:

http://jsfiddle.net/aszymanski/nuyocrqb/1/

1 Like

thanks, it worked for me

That’s great. I will close this topic then.

1 Like