When using the module for exposed views forms, I get extra spaces before and after the placeholder value. Adding $trim to the js file seems to fix the issue.

In line 37 of form_placeholder.js:

from: $textfield.attr('placeholder', $label.text());
to: $textfield.attr('placeholder', $trim($label.text()));

Comments

rafalenden’s picture

Thanks, fix commited to dev version.

rafalenden’s picture

Issue summary: View changes
Status: Active » Fixed

Marking as fixed.

rafalenden’s picture

Status: Fixed » Closed (fixed)