Subscribe on changes!

Passing a string with normal brackets inside of it in an attribute doesn't work and it completely ignores the whole attribute

avatar
Nov 17th 2022

Vue version

3.2.41

Link to minimal reproduction

https://sfc.vuejs.org/#eNp1kr1O7DAQhV9lrqWrgETiRbfLXZCgo6GlceNkZxOz8Y88Yxa0yrtjexFQQOdjj893xuOTuAuhe0koerGlMZrAQMgp3CpnbPCR4QQR97DCPnoLTS5tlFNu9I4YjNUTPhme76MeD8gP7lFbhJty5aKRQfMs2ctadnF92QU3NZfKbeUZlSFZMNqwaMasALZ/2hacB80czZAYwVBJBAOOOhGC3wPPCMMZSGBc1RUBrtDb9uy0My/QE78teKPECZoh35iiT27X1uqm/y3/qgTIrzg5BizmgBlk6AoMw9HHA4EmSJT08kk0dsrEOGbez84fvlv5recsa8i8LIlPxWlGM83cw7/NJrz+LztHs+O5h+vN5m/V35oZ/eJjD8OSsByt9X2ro7jKOcoQW6tD90ze5TFXQAlYDkiJ/owse3m4RSsxMwfqpaT9WD7HM3U+TjKvupgcG4sdkm2H6I+EMRsrUSwyeRXrOwSTy2Y=

Steps to reproduce

Apply a string with brackets inside of it and pass within an attribute.

example: :style="{ 'background-image': 'https://any/link/to/image(1).png'}"

What is expected?

It's expected to set an background image with the given image.

What is actually happening?

Because of the brackets in the image name, the whole attribute won't be displayed - not even just an empty string.

System Info

System:
    OS: Linux 4.4 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i5-1035G7 CPU @ 1.20GHz
    Memory: 696.85 MB / 7.60 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.10.0 - /usr/bin/node
    npm: 7.24.0 - /usr/bin/npm
  npmPackages:
    vue: ^3.2.41 => 3.2.41

Any additional comments?

No response

avatar
Nov 17th 2022

Oh, I missed out on that. Thanks for resolving 👍