Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - Fix searchListField #3499

Closed
wants to merge 2 commits into from
Closed

WIP - Fix searchListField #3499

wants to merge 2 commits into from

Conversation

DavidFyon
Copy link
Contributor

Description

Le filtrage fait perdre la sélection des items

Playground

<template>
	<div>
		<SearchListField
			v-model="value"
			:items="items"
		/>
	</div>
</template>

<script lang="ts">
	import Vue from 'vue';
	import Component from 'vue-class-component';

	import { SearchListItem } from '@cnamts/vue-dot/src/patterns/SearchListField/types';

	@Component
	export default class SearchListFieldUsage extends Vue {
		value: string[] = [];

		items: SearchListItem[] = [
			{
				label: 'Chirurgien-dentiste',
				value: 'chirurgien-dentiste'
			},
			{
				label: 'Infirmier',
				value: 'infirmier'
			},
			{
				label: 'Orthophoniste',
				value: 'orthophoniste'
			},
			{
				label: 'Orthoptiste',
				value: 'orthoptiste'
			},
			{
				label: 'Pédicure-podologue',
				value: 'pedicure-podologue'
			},
			{
				label: 'Pharmacien',
				value: 'pharmacien'
			}
		];
	}
</script>

Type de changement

  • Nouvelle fonctionnalité
  • Correction de bug
  • Changement cassant
  • Refactoring
  • Maintenance
  • Documentation
  • Ce changement nécessite une mise à jour de la documentation

Checklist

  • Ma Pull Request pointe vers la bonne branche
  • Mon code suit le style de code du projet
  • J'ai effectué une review de mon propre code
  • J'ai commenté mon code, en particulier dans les parties difficiles à comprendre
  • J'ai apporté les modifications correspondantes à la documentation
  • Mes modifications ne génèrent aucun nouveau warning
  • J'ai ajouté des tests qui prouvent que mon correctif est efficace ou que ma fonctionnalité fonctionne
  • Les tests unitaires passent localement avec mes modifications
  • J'ai mis à jour le fichier Changelog

@DavidFyon DavidFyon added the bug Correction de bug label May 14, 2024
@DavidFyon DavidFyon added this to the v2.x milestone May 14, 2024
@DavidFyon DavidFyon self-assigned this May 14, 2024
@DavidFyon DavidFyon linked an issue May 14, 2024 that may be closed by this pull request
@DavidFyon DavidFyon closed this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Correction de bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug SearchFieldList
1 participant