What could be causing my v-select title (a string) to split into new lines at the spaces?

When the user clicks to open the dropdown, the v-select v-model value is displayed broken into new lines at spaces.

I have attempted to use styling (white-space) and also considered converting the string to an array and looping through it, but that feels like too much effort. My tech stack includes JS, https://vue-select.org/, and Vue, without Vuetify's v-select implementation.

Here is my data:

data: () => ({
    selectedTitle: "Job Title"
}),

The v-select component:

<v-select
    class="job-title-select"
    :options="titles"
    v-model="selectedTitle"
    @change="(entry) => this.updateCriteria(entry, 'Job Title')"
    taggable/>

Note: The updateCriteria() function sends data to the store, which does not impact the display or local value changes of the v-select. Only the v-model handles those changes.

Expected behavior: When clicking on the v-select, I expect to see the value displayed as "Job Title", "Director of Stuff" on a single line.

Actual result: Upon expanding/clicking the dropdown, the title appears as follows (these are titles, not dropdown items):

Job
Title

Director
Of
Stuff

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Is there a way to retrieve student data by searching for a specific field?

I have a search button on the front end that allows users to input a student number and retrieve the corresponding information from my schema... Currently, I am mapping the data for all products However, when attempting to log the data, I am getting a nu ...

failure to properly assign a property during model update in mongoose

My BaseSchema contains logic that should set values for two properties when a new Model is created: schema.pre("save", function (next) { if (!schema.isNew) { this.createDate = new Date(); this.createBy = "kianoush"; } next(); }); If updating, ...

Find the nearest minute when calculating the difference between two dates

To determine the difference between dates and round to the nearest minute, you can choose to either round date1 or date2 up or down. The result returned is already rounded up to the full minute. You have the flexibility to modify date1 and date2, but do no ...

Data within AngularJS is bound when receiving an Ajax response in HTML

In my current project, I am using Python/Django for the backend with a complex structure of forms. The frontend consists of an Angular controller that makes requests to fetch a suitable form. While working on this, I came across a Django-Angular package th ...

how to make a scroll event bubble in rxjs

When using vanilla JavaScript, I can easily catch any scroll event on any element by including true as the last argument: document.addEventListener('scroll', function(e) { console.log(e); }, true); However, with rxjs it's not as straight ...

Controlling LED lights using Johnny-Five and Arduino in NW.js

I have a setup with my board that includes two buttons (each with pull-up resistors) and two LEDs. My goal is to make each button activate its corresponding LED while deactivating the other one. Here's the code I'm using: var five = require(&ap ...

Fetch routes from an external API using a component and integrate them seamlessly into the router

I want to fetch my routes from an external API, considering that some users may not have the necessary permissions to access a particular module. My navbar makes an API request to retrieve all available modules. These modules contain the file path for the ...

What is the best way to display a template after submitting data via AJAX in the Flask framework?

Encountering an issue where I am unable to open render_template after posting data with ajax. Below is my ajax code: if ($(this).attr("value") == "button-three") { var skoring = getRadioVal(document.getElementById('mentodeNegasi'),'neg ...

What is causing the lack of animation when the drawer is closing?

I am looking to create an animated drawer that slides in and out. When the animation finishes, I want it to disappear by setting `display: none`, but if the drawer is closed without animating out, it should just vanish. const Drawer = ({ closeDrawer, isDra ...

Dependable Timeout Functionality in JavaScript

We are currently developing an AngularJS application that presents users with questions and keeps track of the number of correct answers within a strict 20-minute time limit. However, there are some challenging requirements we need to consider: Accuracy C ...

Using super() conditionally in Typescript

Is it possible to conditionally load the super class based on a parameter in TypeScript? I am facing an issue where I need to send a parameter in super() based on a specific condition, but placing an if statement before super() results in a compilation err ...

How come Vue.js is not showing the image I uploaded?

Even though I can successfully print the image URL, I'm facing an issue where the img tag is not displaying it, despite my belief that I've bound it correctly. <html> <head> <title>VueJS Split Demo</title> <script t ...

The vuetify-loader fails to automatically initiate my variables during bootstrapping

After setting up my project with vue-cli and installing vuetify through vue-cli, I decided to create a directory named sass within the src folder, containing a variables.scss file. According to the documentation (https://vuetifyjs.com/en/features/sass-var ...

Troubleshooting the malfunction of the CSS display property

I've created a div with a number displayed initially. When I hover over the div, the number disappears and a paragraph is revealed. Upon hovering out, the paragraph hides and the number reappears. My attempts to achieve this using CSS (display: none ...

Step-by-step guide on updating a specific child key in Vuex using Object.assign

When dealing with payload.key as a key such as foo, the code appears to be functioning correctly. But how can one update the value of a nested child key like foo.bar.a? export const mutations = { USER_UPDATE(state, payload) { console.log(payload); ...

Identical code exhibiting varying behavior between localhost:3000 and the production server at localhost:5000 on the web

I'm currently in the process of learning React Js, but I've been encountering a persistent error that has me stumped. A specific component functions perfectly when running on my local server (localhost:3000), but as soon as I try to deploy it to ...

Is there a way to ensure that when these cards are clicked, they seamlessly redirect to a new page?

Is there a way for the user to click anywhere in these boxes and be directed to the file in the link? If this is currently not possible, what steps can I take to implement it? https://i.sstatic.net/Dhz9J.png Below is the code for the cards. <div cla ...

What is the best way to upload images in Vue.js without using base64 formatting?

Is there a way to upload an image file without it being base64 encoded? I currently can only achieve base64 format when trying to upload an image. How can I modify the code to allow for regular file uploads? <script> submitBox = new Vue({ el: "#su ...

Reinitialize the nested property of an object in JavaScript

I've encountered an issue while using the Vue3 composition API where attempting to reset a form with nested properties using Object.assign does not work as expected. const initialForm = { name: "", details: { type: "" } }; const f ...

Click the button to access the login form created using React components

I have been working on developing a login form that includes various input components and a button component. SignIn.js class SignIn extends Component { render() { return ( <article className="br2 ba dark-gray b--black-10 mv4 w-100 w-50-m ...