Gbuomprisco / ngx-chips

Tag Input component for Angular
MIT License
899 stars 359 forks source link

No data being inserted after paste in mac safari #742

Open sonicwong opened 6 years ago

sonicwong commented 6 years ago

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] support request/question

Notice: feature requests will be ignored, submit a PR if you'd like

Current behavior When I code and paste one column of data (eg: order number) from LibreOffice spreadsheet into Safari(no problem on chrome, firefox). Nothing being inserted. No problem when copy data to notepad, and copy and paste to web.

Expected behavior Data is read and pasted one by one (next line code).

Minimal reproduction of the problem with instructions (if applicable) <tag-input [(ngModel)]='formData.orderNumbers' name="orders" placeholder="+ Order number" secondaryPlaceholder="Enter here." [editable]='true' [maxItems]='100' [separatorKeyCodes]='[32, 188]' [addOnPaste]='true' [pasteSplitPattern]="'\n'" [addOnBlur]="true"></tag-input>

What do you use to build your app?. Please specify the version "dependencies": { "@angular/animations": "5.2.9", "@angular/common": "5.2.9", "@angular/compiler": "5.2.9", "@angular/compiler-cli": "5.2.9", "@angular/core": "5.2.9", "@angular/forms": "5.2.9", "@angular/http": "5.2.9", "@angular/platform-browser": "5.2.9", "@angular/platform-browser-dynamic": "5.2.9", "@ionic-native/core": "4.5.3", "@ionic-native/splash-screen": "4.5.3", "@ionic-native/status-bar": "4.5.3", "@ionic/storage": "2.1.3", "ionic-angular": "3.9.2", "ionicons": "3.0.0", "ngx-chips": "^1.8.0", "ngx-moment": "^2.0.0-rc.0", "rxjs": "5.5.7", "sw-toolbox": "3.6.0", "zone.js": "0.8.20" }, "devDependencies": { "@ionic/app-scripts": "3.1.8", "typescript": "~2.6.2" }, ngx-chips version:

Browser: mac os 10.13.4 - safari 11.1

Gbuomprisco commented 6 years ago

Hope someone can help on debugging this as I only have a Linux laptop