Comments (5)
Can you reproduce it with current online "Save" example? http://warpech.github.com/jquery-handsontable/#example6
If yes, maybe could you test some recent revisions to see which revision breaks it?
I don't have access to a real Mac now. I have tested it with Windows Safari 5.1.7 and VirtualBox Mac Safari 5.1.3 and it seems to work ok.
from handsontable.
I can't reproduce it with the current online "Save" example. The version from May 24th is the previous one I downloaded. It works fine.
Please find below my code. The alert in onChange is not displaying.
var container = $('#dataTable');
container.handsontable({
rows: 50,
cols: 50,
legend: [
/* Legend 1: make read-only /
{
match: function (row, col, data) {
return (row <= 2 || col < 2);
},
style: {
color: '#666',
fontWeight: 'bold'
},
title: 'not editable',
readOnly: true
},
/ Legend 2: format negative numbers */
{
match: function (row, col, data) {
if (parseInt(data()[row][col], 10) < 0) { //if row contains negative number
container.handsontable('getCell', row, col).className = 'negative'; //add class "negative"
} else {
container.handsontable('getCell', row, col).className = '';
}
}
}
],
onBeforeChange: function (data) {
for(var i = 0, ilen = data.length; i < ilen; i++) {
var value = data[i][3];
if(isNaN(value)) {
data[i][3] = false;
alert('Only numbers are allowed. No text.');
}
}
},
onChange: function (data) {
if (first) {
first = false;
return;
}
alert(JSON.stringify(data));
if(data[0][2] != data[0][3]) {
var temp = [data[0][0], data[0][1], data[0][3]];
}
}
});
from handsontable.
I tested your code and you were right that it doesn't work. It was not because of Safari but because onChange was not called when contextMenu was not enabled. I just fixed, please check again.
from handsontable.
It's still not working.
from handsontable.
Just repulled a minute ago and it is working. Thanks, warpech!
from handsontable.
Related Issues (20)
- [Bug]: When there are many options, there is a bug when filtering in the drop-down menu. HOT 3
- [Bug]: Unable to pass "type" to a HotColumn component in react. HOT 5
- [Bug]: Custom border misaligns rows HOT 4
- [Bug]: .manualColumnResizer goes out of position inside scaled parent element HOT 1
- [Bug]: cellMeta reseted when updating data HOT 12
- [Bug]: When first cell of selection is a checkbox, it prevents BACKSPACE or DELETE buttons actions HOT 1
- [Bug]: `AutoColumnSize` plugin gets disabled when `colWidths` is set HOT 2
- [Bug]: getSelected row/col start and row/col end incorrect when copying data HOT 3
- [Bug]: Different scrolling experience with scrollbar vs. with touchpad HOT 1
- [Bug]: The first character automatically converts to an English letter in Japanese HOT 17
- [Bug]: Styling issue when scrolling to up with renderAllRows=false (flickering) HOT 3
- [Bug]: `cmd + z´ not working on German keyboard HOT 3
- [Bug]: when i use 'custom renderer as a component'. Sometimes, the Component Elements will be automatically cleared HOT 5
- [Bug]: Display Issues with `nestedRows` and `nestedHeaders` Options Enabled in Table
- [Bug]: Display Issues with `nestedRows` and `nestedHeaders` Options Enabled in Table HOT 13
- [Bug]: "mergedHotSettings" Error reporting! HOT 5
- [Bug]: getCellsMeta return stale result if row and column have been inserted HOT 3
- Handsontable 14.2.0 is here!
- [Bug]: vue2, handsontable, use multi-column sort plug-in, start multi-column sort, beforeColumnSort execution time is what? HOT 1
- [Bug]: The setSortConfig setting is in effect, the page does not change, and the column size needs to be adjusted before it is displayed. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handsontable.