Button attribute values have trailing space

Created on 31 October 2023, about 1 year ago
Updated 26 April 2024, 6 months ago

Problem/Motivation

When adding multiple button attributes, the attribute values have a trailing space like this:
my-attribute="value "

This only happens if there is more than one attribute.

Also I was only noticing this on the production server not on my local development server, using the exact same views config. So Im guessing it has to do with the way my two environments handle line breaks.

Proposed resolution

add a trim() around the attribute value when rendering the button.

I will provide a patch.

๐Ÿ› Bug report
Status

RTBC

Version

2.0

Component

Code: Area Plugin

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States loze Los Angeles

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024