[BUGFIX] Remove style attribute in LiveSearch 39/54439/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 18 Oct 2017 19:49:36 +0000 (21:49 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 18 Oct 2017 20:06:22 +0000 (22:06 +0200)
commit6901100422146ef996ee197b116ae9602ae4547a
tree42eea48e75ef271531f21c7bd69c3bc16f21b0c5
parente552bb4256f14ee062532f5a9bb2f0c634ebf7aa
[BUGFIX] Remove style attribute in LiveSearch

Currently, `beforeRender` removes some inline CSS so adjust the layout
of the suggest list. If the first search has no result, the layout is
broken because `beforeRender` is not called in case there are no results.

This patch removes the style attribute as early as possible.

Resolves: #82757
Releases: master, 8.7
Change-Id: I844b81aca43bd469dfdbb46516366f4786d0935f
Reviewed-on: https://review.typo3.org/54439
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Resources/Public/JavaScript/LiveSearch.js