flex-users / flexlib

Open Source Flex components library.
github.com/flex-users/flexlib
MIT License
204 stars 91 forks source link

Click on 'twistie' when editor open causes RTE #299

Open nicoulaj opened 13 years ago

nicoulaj commented 13 years ago

Originally filed by goo...@cobraflow.com on 2010-04-24T09:03:18

What steps will reproduce the problem?

  1. Create editable TreeGrid
  2. Populate with data.
  3. Open two levels.
  4. Click to edit value in third level.
  5. Click top level 'twistie' to close all.

What is the expected output? What do you see instead? Tree should dispatch itemEditEnd on currently active cell and close tree. We get an RTE.

What version of the product are you using? On what operating system? Windows Vista SDK 3.5.0.12683 flexlib (flex3) 2.5

Please provide any additional information below.

[Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference. This occurs on line 1446 in DataGrid.as

This only occurs when you click a 'twistie' and not another cell. If there is no edit happening, this does not happen.

nicoulaj commented 13 years ago

Updated by goo...@cobraflow.com on 2010-04-24T11:06:34

A quick hack that works :-

overide public function dispatchTreeEvent(...){ // Setting enabled gets the datagrid to call endEdit() and invalidateDisplayList() enabled = true; super.dispatchTreeEvent(...); }