Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a.nikitin committed Oct 27, 2023
1 parent 774fe86 commit cc0486a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "vue-selectpage",
"description": "SelectPage for Vue, a select items components provides the list of items with pagination",
"version": "3.0.11",
"version": "3.0.12",
"author": "TerryZ <terry5@foxmail.com>",
"type": "module",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/core/data.js
Expand Up @@ -115,7 +115,7 @@ export function useData (props, emit) {
if (props.max === UNLIMITED) {
return selectItem(row)
}
if (selected.value.length === props.max) {
if (selected.value?.length === props.max) {
message.value = lang.maxSelected.replace(LANG_MAX_SELECTED_LIMIT, props.max)

messageDebounce(() => { message.value = '' })
Expand Down
1 change: 1 addition & 0 deletions src/styles/common.sass
Expand Up @@ -4,6 +4,7 @@
font-weight: bold
color: #999
.sp-container
width: 100%
min-width: 300px
display: inline-flex
overflow: hidden
Expand Down
4 changes: 2 additions & 2 deletions src/styles/trigger.sass
Expand Up @@ -4,7 +4,7 @@
min-height: 31px
justify-content: space-between
flex-grow: 1
padding: 0 5px 0 3px
padding: 2px 5px 2px 2px
background-color: white
border: 1px solid #ddd
border-radius: .3rem
Expand Down Expand Up @@ -56,7 +56,7 @@
justify-content: space-between
flex-grow: 1
.sp-select-content
padding: 5px
padding: 3px 6px
line-height: 1.143
color: #333
&.sp-chips
Expand Down

0 comments on commit cc0486a

Please sign in to comment.