LearnNewsExamplesServices
Frontmatter
id2116
titleText field throws error when clearing field and typing
stateClosed
labels
bug
assigneestobiu
createdAtMay 22, 2021, 10:12 PM
updatedAtMay 23, 2021, 12:38 PM
githubUrlhttps://github.com/neomjs/neo/issues/2116
authorkeckeroo
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 23, 2021, 12:38 PM

Text field throws error when clearing field and typing

Closed v8.1.0 bug
keckeroo
keckeroo commented on May 22, 2021, 10:12 PM

Describe the bug When initially set to have 'clearable' and then clearing 'clearable', text field generates errors when typing This also affects textarea field too (understandable)

To Reproduce Steps to reproduce the behavior:

  1. Go to textfield demo
  2. UNCLICK the clearable box
  3. type any character or delete
  4. See error Clear.mjs:75 Uncaught TypeError: Cannot read property 'value' of null at Clear.getHiddenState (Clear.mjs:75) at Clear.onFieldChange (Clear.mjs:93) at Text.fire (Observable.mjs:112) at Text.afterSetValue (Base.mjs:33) at Text.afterSetValue (Text.mjs:485) at Text.set (Neo.mjs:544) at Text.onInputValueChange (Text.mjs:832) at DomEvent.mjs:113 at Array.forEach () at DomEvent.fire (DomEvent.mjs:98)

Expected behavior expected to be able to type or delete characters in text field

Screen Shot 2021-05-22 at 3 11 45 PM

keckeroo added the bug label on May 22, 2021, 10:12 PM
tobiu assigned to @tobiu on May 23, 2021, 11:32 AM
tobiu
tobiu May 23, 2021, 11:32 AM

confirmed. will take a look into it now.

tobiu referenced in commit aa9037d - "Text field throws error when clearing field and typing #2116" on May 23, 2021, 11:47 AM
tobiu cross-referenced by #2133 on May 23, 2021, 12:36 PM
tobiu
tobiu May 23, 2021, 12:38 PM

this one works now, there are probably follow up tickets.

tobiu closed this issue on May 23, 2021, 12:38 PM