[BUGFIX] Remove style attribute in LiveSearch 40/54440/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:22:37 +0000 (22:22 +0200)
commitb0d9f03bc94f60aaffbe974c664b1fef2ecd3796
tree236085a2c2e52bf46a334a3119a43ff0e99c57b9
parent3d25dc858f8f0d15469e0f4bab8097c3a8c4e889
[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/54440
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