Skip to content

Remove forceRerender() from FieldDropDown. - #1611

Merged
rachel-fenichel merged 1 commit into
RaspberryPiFoundation:rc/feb_2018from
AnmAtAnm:rc/feb_2018
Feb 14, 2018
Merged

Remove forceRerender() from FieldDropDown.#1611
rachel-fenichel merged 1 commit into
RaspberryPiFoundation:rc/feb_2018from
AnmAtAnm:rc/feb_2018

Conversation

@AnmAtAnm

@AnmAtAnm AnmAtAnm commented Feb 14, 2018

Copy link
Copy Markdown
Contributor

(Cherry-pick #1610 into release candidate.)

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

#1609 Uncaught TypeError: Cannot read property 'firstChild' of undefined

Proposed Changes

Do not render block during field init().

Reason for Changes

The forced block render was causing other fields to render before they initialized, and fail.

Test Coverage

Manually tested all dropdown blocks and reported block in both LTR and RTL:

Also verified proper resize on variable rename (since variable fields are also dropdowns).

Tested on:

  • Desktop Chrome (Mac, Linux, Windows)
  • Desktop Safari (Mac, iOS 9.3)
  • Windows Internet Explorer 11
  • Windows Edge

Errantly forced whole block to rerender, including fields that
had not yet been initialized.

Fixes RaspberryPiFoundation#1609
@rachel-fenichel
rachel-fenichel merged commit d718952 into RaspberryPiFoundation:rc/feb_2018 Feb 14, 2018
@AnmAtAnm
AnmAtAnm deleted the rc/feb_2018 branch February 20, 2018 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants